Results 1 to 3 of 3

Thread: Beginners Help Create a Stack

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2002
    Posts
    159

    Beginners Help Create a Stack

    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");
    }
    Last edited by NOTSOSURE; May 20th, 2004 at 05:30 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width