/* * File: Hello.java * Author: Java, Java, Java * Description: This program illustrates the use of methods of the * java.io.BufferedReader class to perform simple keyboard input. * A BufferedReader object is created and its readLine() method is * used to perform the input task. The program inputs the user's name * and just "says" hello to the user by name. */ import java.io.*; // Java I/O classes public class Hello { // Performs screen i/o public static void main(String argv[]) throws IOException { BufferedReader input = new BufferedReader // This object reads the (new InputStreamReader(System.in)); // keyboard input. System.out.print("Hello, input your name please "); String inputString = input.readLine(); // Read the user's name System.out.println("Hello " + inputString); } // main() } // Hello