Write a short application that takes in a String from the user and prints it out backwards.

What will be an ideal response?


```
import java.util.Scanner;
public class StringReverse {
public static void main(String [] args) {
String inputString;
Scanner input = new Scanner(System.in);
System.out.print("Please enter a string: ");
inputString = input.nextLine();
for(int i = inputString.length – 1; i >= 0; i--)
System.out.print(inputString.charAt(i));

}//end main
}//end class
```

Computer Science & Information Technology

You might also like to view...

All Web browsers support all features from the most recent HTML version standard.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The RTF file format can be opened and edited in Microsoft Word. _____

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

ADUC and ADAC are command line tools that can create user accounts.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The functional components of an _________ are: data source, sensor, analyzer, administration, manager, and operator.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology