This is an old revision of the document!
This is a simple “text input” application.
import java.io.*;
//imports the class IO
public class TextInsert {
public static void main(String[] args) throws Exception {
String text ;
BufferedReader in = new BufferedReader(
new InputStreamReader(System.in));
System.out.print("Whats your Name? ");
text = in.readLine();
System.out.println("Hello " +text) ;
}
}
Discussion