Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

CHALLENGE
ACTIVITY
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
import java.util.scanner;
public class Name
{
public static void main(String[] args)
Scanner in = new]Scanner(
System.in);
System.out.print("Please enter your first and last name: ");
// Read in the first and last name
/* Your code goes here Your code goes here your code goes here */);
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

What are topics included in virtually all labor agreements?

Answered: 1 week ago

Question

using signal flow graph

Answered: 1 week ago