Your current approach of asking the same question until you get a correct answer is not sustainable. How many times will you write the same code? Rather, if you want to repeat a section of code, it...
Type: Posts; User: GregBrannon
Your current approach of asking the same question until you get a correct answer is not sustainable. How many times will you write the same code? Rather, if you want to repeat a section of code, it...
The JOptionPane dialogs can also be used to collect input. Keep reading that section.
Did you run it? Was input entered in a JOptionPane dialog? Is the Scanner object still needed?
Have you reviewed writing dialogs with JOptionPane? Once you've done that, replace the console I/O with JOptionPane dialogs. Pretty simple, really.