Question: Java. Please help with assignment. Thanks. Using the method setAge you have just written, write a loop that reads a number from a Scanner (you
Java. Please help with assignment. Thanks.
Using the method setAge you have just written, write a loop that reads a number from a Scanner (you can use nextInt() for that) and tries to fill it into the age of a given Student instance until that is successful. Assume the following definition and construct the code after that. [10]
Student s = new Student();
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
