I'm new to java. In my program, I have the user enter the integers that are being added to an array list. I need to set up a while loop that will be something like this:

```
arrayList = new ArrayList<int>; 
int i = scanner.nextInt();
while(there is input from user)
{
    arrayList.add(i);
}

```

I expect the user to enter 5 values. What do I put as the condition statement of the while loop. In other words, how do I say "while there is input?" Thanks