mirror of https://github.com/cyp0633/homework.git
Java implementation of input data printer
This commit is contained in:
parent
0f8eb8a686
commit
d8d9c0aba7
|
@ -0,0 +1,13 @@
|
|||
import java.util.*;
|
||||
|
||||
public class showdata {
|
||||
public static void main(String[] args) {
|
||||
Scanner sc = new Scanner(System.in);
|
||||
String str;
|
||||
while (sc.hasNextLine()) {
|
||||
str = sc.nextLine();
|
||||
System.out.println(str);
|
||||
}
|
||||
sc.close();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue