Question: Write a program that prompts the user to enter a string and displays the string in reverse order. Enter a string: ABCD The reversed string

Write a program that prompts the user to enter a string and displays the string in reverse order.

Enter a string: ABCD The reversed string is DCBA JEnter

Enter a string: ABCD The reversed string is DCBA JEnter

Step by Step Solution

3.36 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program plan 1 Create a class StringReverse 2 Declare and initialize the variables String reverStrin... View full answer

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 Java Programming Questions!