Sabtu, 27 Februari 2016

test1

import java.io.BufferedReader; import java.InputStreamReader; import java.io.IOException; public class GetInputReaderKeyboard{ public static void main(String []args){ BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in)); String name = ""; System.out.print("please Enter Your Name:"); try{ name = dataIn.readLine(); } catch(IOException e) { System.out.println("EROR!"); } System.out.println("Hello" + name +"!"); } }