Results 1 to 3 of 3
Thread: Help with program
- 11-07-2009, 04:12 AM #1
Member
- Join Date
- Nov 2009
- Posts
- 2
- Rep Power
- 0
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...
-
if / else sounds good to me. Why not try that?
- 11-07-2009, 05:37 AM #3
Member
- Join Date
- Nov 2009
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
execute java program within java program
By popey in forum New To JavaReplies: 2Last Post: 10-22-2009, 05:32 PM -
Execute A program from a Program!
By Moncleared in forum Advanced JavaReplies: 2Last Post: 02-22-2009, 04:17 PM -
Executing a program within a program
By gibsonrocker800 in forum New To JavaReplies: 5Last Post: 05-12-2008, 08:24 AM -
How to execute an External Program through Java program
By Java Tip in forum java.ioReplies: 0Last Post: 04-04-2008, 02:40 PM -
How to execute an External Program through Java program
By JavaBean in forum Java TipReplies: 0Last Post: 10-04-2007, 09:33 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks