I'm currently doing a college lab on while loops and I'm stuck and would appreciate any help available. I have to write a program as follows

> 
> Write a program MaxNum that reads in a sequence of 10 positive integers, and
>  outputs the maximum of the sequence
> 
> 
> 

Now I could just make 10 ints and make the user input a value but I'm not sure how to do that with a while loop?

Here is the code I have at the moment :

```
import java.util.Scanner;
public class SumTenNumbers{
    public static void main (String [] args)
    {
        Scanner in = new Scanner(System.in);
        int Num1= 0;

        System.out.println("Please enter 10 integers");
        do
        {
            for(Num1 = 0; Num1 < 10; Num1++);
            {
                Num1 = in.nextInt();
            }
        }
        while(Num1 > 0);
    }
}

```