Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment First, launch IntelliJ and close any previous projects that may be open ( at the top menu go to File = = > Close

Assignment
First, launch IntelliJ and close any previous projects that may be open (at the top menu go to File ==> Close All Projects).
Then create a new Java application called "ReverseStrings" (without the quotation marks) that:
Prompts the user at the command line for one 3-character string.
Verify this first string contains 3 characters; if not, print error and exit program.
Then prompt the user for a 4-character string.
Verify this second string contains 4 characters; if not, print error and exit program.
Print out the two input strings with one space between them.
Finally prints on a separate line the two input strings 'in reverse' (see example below) with a space between them.
So, for example, if the first string is 'use' and the second string is 'this', your program would output something like the following:
The two strings you entered are: use this.
The two strings in reverse are: siht esu.

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

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

=+1. Whose approach do you believe is the better one? Why?

Answered: 1 week ago