How would i create a stack called thefuture and adds the following strings to it: "Hello", "Java", "will", "be", "replaced", "by", "CSharp"
i have had a go but im not sure if it's correct. can anyone update it so all the brackets are in the correct place and the language grammer is correct?
Thanks
james
Code:public class Stack extends Vector Stack(thefuture) { Object push(Object "Hello"); Object push(Object "Java"); Object push(Object "will"); Object push(Object "be"); Object push(Object "replaced"); Object push(Object "by"); Object push(Object "CSharp"); }




Reply With Quote