Advertisement
Guest User

Untitled

a guest
Aug 1st, 2019
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Test {
  3. public static void main(String[] args){
  4. System.out.println("hello!");
  5. Scanner in = new Scanner(System.in); // in object is linked to stdin
  6. // read from stdin
  7. while (in.hasNextLine()){
  8. System.out.println(in.nextLine() + "here");
  9. }
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement