Hi i have a problem with the following code:

<code>
import java.util.Scanner;
public class Woorden{
public static void main (String[] argv){
Scanner input = new Scanner(System.in);
String zin;
System.out.print("Zin ");
if (input.hasNextLine()){
while (input.hasNext()){
System.out.println(input.next());
}
}
}
}
</code>

The program should promt the user for one input line and then print the elements of that line one at a time. However, the program does not stop. The input is entered by using keyboard + command line.

Can anyone help me with this problem?