Sorry if this sounds too simple. I'm very new to Java.

Here is some simple code I was using to examine `hasNextLine()`. When I run it, I can't make it stop. I thought if you didn't write any input and pressed `Enter`, you would escape the `while` loop.

Can someone explain to me how `hasNextLine()` works in this situation?

```
import java.util.*;

public class StringRaw {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextLine()) {
            String str = sc.nextLine();
        }
        System.out.print("YOU'VE GOT THROUGH");
    }
}

```