1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import java.io.IOException; /** * 자바의 표준 입출력 필드(Field)에 대하여 * - in, out, err * * */ /*import java.lang.*;*/ import java.io.*; public class Exam_01 { // Exam_01 클래스 public static void main(String[] ar)throws IOException{ // main 메서드 System.err.println("표준 에러 출력 스트림"); int x = System.in.read(); System.out.println("x = " + x); System.out.println("표준 출력 스트림"); } // main 메서드의 끝 } // Exam_01 클래스의 끝 | cs |
'공부 > JAVA_source' 카테고리의 다른 글
자바 입출력 (0) | 2016.10.19 |
---|---|
자바 System 클래스 (write/print/println/printf) (0) | 2016.10.19 |
자바 변수 (전역변수/지역변수) (0) | 2016.10.19 |
자바 논리형/문자형/문자열형/정수형/실수형 (0) | 2016.10.19 |
자바 자료형 / 증감연산자 (0) | 2016.10.19 |