Please explain and show what the code is doing. Add some printlns to print out what is happening.
Type: Posts; User: Norm
Please explain and show what the code is doing. Add some printlns to print out what is happening.
The Scanner method is waiting for you to enter a number.
Post the new code that compiles.
Try debugging it by adding printlns that print out the values of the variables used in the while statement so you can see what the computer sees and know why it is...
No it is ok to have loops inside of loops. No problem there.
Is there a do without a while()?
The code you posted does not compile. How can you execute the program with compiler errors?
Please post the full text of the compiler errors you are getting.
The code needs to be formatted. It...
Please Edit your post and wrap your code with
<YOUR CODE HERE> to get highlighting
This is a strange looking while statement:
Does this code compile for you?
What do you want it to do?