Scanning (1) 썸네일형 리스트형 Stream - Scanning 자바를 처음 접하면서 Scanner라는 클래스 형의 객체를 사용하여 사용자로부터 Console 창에서 값을 입력 받을 수 있었습니다. Stream 에서 Scanner 클래스의 객체를 이용하여서 사용하는 튜토리얼이 나와 있었습니다. 기존에는 Scanner s = new Scanner(System.in); 이런식으로 사용 했는데 생성자의 인수가 inputStream 객체입니다. Scanner의 생성자를 살펴보면 InputStream만 인수로 받는다는것을 알수가 있습니다. Scanner(InputStream source) Constructs a new Scanner that produces values scanned from the specified input stream. Scanner(InputStream.. 이전 1 다음