Question: 2 . 1 3 . 1 : Write a program that reads two words of input and prints them in reverse order Write a program

2.13.1: Write a program that reads two words of input and prints them in reverse order
Write a program that reads in the first and last name of a person and prints the last name, followed by a comma, a space, and the first name. For example
Please enter your first and last name: Harry Morgan
Morgan, Harry
3 public class Name
ublic static void main(String[] args)
Scanner in = new Scanner(System. in) system.out.print ("Please
// Read in the first and last name: ");
"F vour code goes here */
II print the last name, a comma, a space, and the first name
 2.13.1: Write a program that reads two words of input and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!