Finding Min/Max/Average/Sum in an Array.

Pretty new to Java. The error i am getting is that the min value always comes out to be 0 when I dont even enter a 0. I know this is a beginner problem but I just need some help finding the min. What am i doing wrong?
----------------------------

System.out.println("The sum of the numbers is " + sum);
System.out.println("The max number is " + max);
System.out.println("The min number is " + min );
System.out.println("The average of the numbers is " + average);

Re: Finding Min/Max/Average/Sum in an Array.

Think about it you initialize an array and all the indexes are set to 0, then you set a variable called min to 0. Every time the user enters something it will be compared to min in this case always 0 therefore the min will always be 0 unless the user enters a negative number.