Question: Write code (ReverseNames.java) that prompts the user to enter his or her full name, then prints the name in reverse order (i.e., last name, first
Write code (ReverseNames.java) that prompts the user to enter his or her full name, then prints the name in reverse order (i.e., last name, first name). You may assume that only a first and last name will be given. Here is a sample dialogue with the user:
Please enter your full name: Emily Johnson Your name in reverse order is: Johnson, Emily
You may assume the user only enters two tokens (first name and last name). What would you do differently if the user entered three tokens (first name, middle name, and last name)?
Reminders
All submitted code should follow the Style Guidelines and include proper Javadoc.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
