Archive for May 14th, 2013

Java Program 12 – Read Input From Keyboard

Program

import java.io.*;

class TestBuffer{

    public static void main(String args[])throws Exception{
    
        InputStreamReader in=new InputStreamReader(System.in);
        BufferedReader br=new BufferedReader(in);
        String msg=br.readLine();
        System.out.println(msg);
    }

}


Read more »

Last updated by at .