-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbj11718.java
More file actions
35 lines (30 loc) · 932 Bytes
/
bj11718.java
File metadata and controls
35 lines (30 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package string;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
//// hasNextLine() -> 다음 줄에 입력값이 있는지를 체크한다.
//public class bj11718 {
// public static void main(String[] args) {
// Scanner sc = new Scanner(System.in);
// while (sc.hasNext()) {
// String S = sc.nextLine();
// System.out.println(S);
// }
// sc.close();
// }
//}
public class Bj11718 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
while (true) {
String S = br.readLine();
if (S == null || S.isEmpty()) {
break;
}
sb.append(S).append("\n");
}
br.close();
System.out.println(sb);
}
}