Write a Program to Read User Input and Display Using in Java Programming.

Basically to Read User input there Library in Java Programming called Scanner using (“import java.util.Scanner;”) its Used in yours program.

Example :
System.out.println(“Enter Your String: “);
String text = userinput.nextLine();

Program :

Output:

UserInput

(Visited 15 times, 1 visits today)

Written by: