Java Addition Practice Application

preview_player
Показать описание
Here is an application that is used to practice addition. It uses sentinel control with the scanner to allow user to end the program, generate a new addition problem, or retry the addition problem if they got it wrong. In the program the Secure Random package is used to generate random numbers.

In the end I realized the while loop will not accept anything other than 1, 2, or 3 so the program was not entering the while loop and going to the end of the Java file. To fix go to the end of the while loop and add this code:

} end of while loop.

addNumbers();

} end of addNumbers method
Рекомендации по теме