User Tools

Site Tools


java:codes:textinput

Text input

This is a simple “text input” application.

TextInsert.java
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) ;
          }
     }



java/codes/textinput.txt · Last modified: 2018/12/20 17:44 by lunetikk