Java implementation of input data printer

This commit is contained in:
cyp0633 2021-10-28 20:10:37 +08:00
parent 0f8eb8a686
commit d8d9c0aba7
1 changed files with 13 additions and 0 deletions

13
showdata.java Normal file
View File

@ -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();
}
}