The code uses 3 while() statements where an if/else if is more appropriate. Use a while() statement for looping.
When you learn the switch statement you'll see it's better for where the while...
Type: Posts; User: Norm
The code uses 3 while() statements where an if/else if is more appropriate. Use a while() statement for looping.
When you learn the switch statement you'll see it's better for where the while...
@QFox Please read this: http://www.javaprogrammingforums.com/cafe/9544-problem-spoon-feeding.html
When you get errors, you need to post the full text of the error and the source that caused it.
= is the assignment operator
== is the compare for equality operator
It is more common to code tests of the values of boolean variables without comparing them:
boolean aBooleanVar = false;
...