Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Test {
- public static void main(String[] args){
- System.out.println("hello!");
- Scanner in = new Scanner(System.in); // in object is linked to stdin
- // read from stdin
- while (in.hasNextLine()){
- System.out.println(in.nextLine() + "here");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement