Results 1 to 3 of 3
  1. #1
    Syra is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

    Default Help with program

    I'm actually not quite sure whether this should be under Advanced or Beginners at the moment but I really need help with this.

    For my assignment that's due, I need to implement a queue, making sure all of the methods are implemented, and also write a driver to test it that creates a stack of Strings and reads in a series from standard input. The thing is- if the string starts with an "@" is is one of the particular commands for the program, including @Dequeue, @First, @Size, and @Display. I'm not sure on how to get my program to recognize the @ at the beginning and do what I want it to do based upon the command.

    I'm not sure if say a switch statement would work or maybe some kind of if else code set...

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  3. #3
    Syra is offline Member
    Join Date
    Nov 2009
    Posts
    2
    Rep Power
    0

Similar Threads

  1. execute java program within java program
    By popey in forum New To Java
    Replies: 2
    Last Post: 10-22-2009, 05:32 PM
  2. Execute A program from a Program!
    By Moncleared in forum Advanced Java
    Replies: 2
    Last Post: 02-22-2009, 04:17 PM
  3. Executing a program within a program
    By gibsonrocker800 in forum New To Java
    Replies: 5
    Last Post: 05-12-2008, 08:24 AM
  4. Replies: 0
    Last Post: 04-04-2008, 02:40 PM
  5. Replies: 0
    Last Post: 10-04-2007, 09:33 PM

Posting Permissions

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