You have a scope problem setting the value of nova inside of a method when nova is defined as a local variable or argument to the method. When the method exits, all of the local variables are...
Type: Posts; User: Norm
You have a scope problem setting the value of nova inside of a method when nova is defined as a local variable or argument to the method. When the method exits, all of the local variables are...
Can you copy the console window's contents and paste it here showing your input the the program's output?
On windows: To copy the contents of the command prompt window:
Click on Icon in upper...
Add a println() statement to print out the value of nova so you can see what the computer sees.
Put the println at the place where you think the code thinks its a 1.
Where is the value supposed...
Do the code one part at a time. Write the code for the first part, compile it, fix the errors and test it.
The steps for the first part:
ask for input
get input
if input not a 1 return an...
What specific questions do you have?