String reader :BufferedReader

import java.io.*;
// javac simple_input.java
public class simple_input
{
public static void main(String args[])throws IOException
{
/*this is a comment
compile as
javac multi_comment.java
call as java simple_comment */
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

System.out.print("Type something :");
String str = "";
str = br.readLine();
System.out.println(str);
}
}