Question: I'm working on a Java project. I'm wondering how can I right the code lines for user to input their age. If the user's input
I'm working on a Java project. I'm wondering how can I right the code lines for user to input their age. If the user's input age is equal to or greater than 21 year old. The system would print "Enjoy playing". And run the rest of the program. However, if the value is less than 21, the system will print out "Sorry! You are not old enough." And then will not run the rest of the program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
