import java.io.*;
public class InputStreamReaderTest {
public static void main( String[] args ) {
// byte Stream인 is 선언
InputStream is = System.in;
// InputStreamReader 객체 선언
// 객체정의! InputStream ->InputStream"Reader"로 변환 [byte->char] !!!!!
InputStreamReader isr = new InputStreamReader( is );
int inputValue = 0;
System.out.print( "Input Value : " );
try {
// 키보드로 부터 데이타를 입력
inputValue = isr.read(); //2byte 단위 별로 저장
} catch ( IOException io ) {
}
// 입력받은 데이타를 출력
System.out.println( "Input Result : " + (char)inputValue );
}
}
