import java.util.Scanner;

class HelloBeatles {

    public static void main(String[] args) {
	Scanner input = new Scanner(System.in);

	while (input.hasNext()) {
	    System.out.println("Hello, " + input.next() + "!");
	}
    }
}

@@ -150,16 +150,20 @@
 .hasNext
+Line
 ()) %7B%0A%09 
@@ -206,16 +206,20 @@
 put.next
+Line
 () + %22!%22

Use Scanner.nextLine in HelloBeatles.java