Question: 2. Write a method, getName(), that has no parameters. It should create a Scanner object, ask the user to enter their name and return that
2. Write a method, getName(), that has no parameters. It should create a Scanner object, ask the user to enter their name and return that name. [8 pts] ssume the user enters their full name on a single line, as follows: Ravi Gandham
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
