Question: Then create a new Java application called ReverseString (without the quotation marks) to read a word (String) from the command line and then output the
Then create a new Java application called "ReverseString" (without the quotation marks) to read a word (String) from the command line and then output the word in reverse order. Use a for loop to 'walk through' the String. Include a data validation that ensures the String is at least five characters. If it's not, provide a suitable error message back to the user and conclude the program. If it is valid input, proceed with the loop. For example, if the user enters "IST140", your program should output "041TSI".
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
