Print strings in the reverse order

Report a typo

Write a program that reads three strings from input and prints them in the reverse order, each on a new line.

Tip: You don't need to use anything advanced for this task. Simply declare three strings, read each input string, and print them in reverse order.

Sample Input 1:

Java
Programming
Language

Sample Output 1:

Language
Programming
Java
Write a program in Java 17
import java.util.Scanner;

class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// start coding here

sc.close();
}
}
___

Create a free account to access the full topic