Good catch. Better yet, always use {} blocks for if statements and loops.
Type: Posts; User: KevinWorkman
Good catch. Better yet, always use {} blocks for if statements and loops.
The first part is just making sure the user enters a 1 or 2. If the user enters something else, it will repeat the question.
As for the second part, read this: Lesson: Basic I/O (The Java™...