java: Reading in multiple integers from the scanner and assigning each integer to a different variable? : I have to read in integers and the scanner has to continue to scan them in until 0 is entered. Then all of those numbers have to be saved to different variables. Then the variables have to be compared and the following has to occur:
-Find the smallest integer
-Find how many integers are even
-Find the sum of the negative integers

I have this so far:


    public static void main (String[] args)
    {
    		Scanner in = new Scanner(System.in);
    		System.out.println("Enter integers");
    		do
    	    {
    			
    	    }
    		while (in.nextInt() !=0);
        }

I am lost on what to do next.