백준 11571 백준 Class 1 java #10951 ~ #1546 🌼 백준 10951 📝 EOF End of File EOF End of File 읽을 수 있는 데이터가 존재하지 않을 때 반복문 종료 Scanner in; 경우, while(in.hasNextInt()) 로 설정해주면 됨. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; while((str = b.. 2022. 9. 26. 이전 1 다음