Question: First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ==> Close All Projects). Then create

First, launch NetBeans 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 "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".

package reversestring;

import java.util.Scanner;

public class ReverseString {

public static void main(String[] args) { // TODO code application logic here //variables String inputUser=""; int inputLength=0; int i=0; System.out.println("Type a string:"); } }

need help please & thank you

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!