Post the code to show the problem.
Be sure there is a 'default:' in the switch statement that prints out an error message and the value of the switch variable.
Type: Posts; User: Norm
Post the code to show the problem.
Be sure there is a 'default:' in the switch statement that prints out an error message and the value of the switch variable.
Put the loop in the main() method:
begin loop
show menu
get users response
do what user wanted to do (this could include quit which would exit the loop)
end loop
These three lines are in most...
See the tutorial:
The while and do-while Statements (The Java™ Tutorials > Learning the Java Language > Language Basics)
a = newValue; // update a
// or
a = someMethod(); // update a...
Can you explain what "just ends" means? Does the program have an error that stops its execution?
What makes the program stop executing?