I get confused sometime when it asks me what the output is when it seems ambiguious.
I think the question was like nested if statements.
So as I was tracing along I realized there is no main program or even a class. Do I assume that this is already done and they omitted it out or should I say cannot compile because there is no main method.
You can certainly compile a class without a main method, so don't choose that. If you do not understand a mock question, then compile it yourself. If it compiles, then run it, writing your own main method to create instances of the class if necessary. You can also use a free learning IDE called BlueJ which allows you to create instances without main method if you want.
A secret: I use BlueJ all the time when helping people on this forum: try, see, learn. [ December 15, 2004: Message edited by: Barry Gaunt ]