Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Copy-stdin-to-stdout/Java/copy-stdin-to-stdout.java
Normal file
14
Task/Copy-stdin-to-stdout/Java/copy-stdin-to-stdout.java
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import java.util.Scanner;
|
||||
|
||||
public class CopyStdinToStdout {
|
||||
|
||||
public static void main(String[] args) {
|
||||
try (Scanner scanner = new Scanner(System.in);) {
|
||||
String s;
|
||||
while ( (s = scanner.nextLine()).compareTo("") != 0 ) {
|
||||
System.out.println(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue