패스트캠퍼스 #자바 #객체지향1 <FAST CAMPUS>자바 웹개발-객체지향 프로그래밍 표준 입출력 System 클래스의 표준 입출력 멤버 public class System{ public static PrintStream out; // 표준 출력 스트림 public static InputStream in; // 표준 입력 스트림 public static PrintStream err; // 표준 에러 스트림 } System.in.read() 를 사용 할 때 in 멤버는 inputStream 을 쓰고 그 안에 read 라는 메서드로 읽고 반환 값은 int로 된다 byte로 읽는데 int로 반환되는 이유는 파일의 끝에 도달하면 -1을 반환해야되기 때문 입력 예 입력에 한글을 설정 해결 ( 보조스트림 : InputStreamReader ) 바이트 단위 입출력 스트림 InputStream : 바이.. 2021. 1. 26. 이전 1 다음