> Need help with java program?

Need help with java program?

Posted at: 2014-06-09 
I have to make a program that generates random birthdays using the super bowl attendance (82,529). I have to count then how many birthdays each day has and then display the max and min days. I know I will need at least 1 array but I do not know how to do it. Can only use main method. An example output looks like this Day 1 : 201 people Day 2 : 179 people Day 3 : 224 people (goes to 365) The following days have 224 people: (Max) 3 The following days have 179 people: (Min) 2
// No need for an array import java.util.* // Above class, at top int min = -99; int minRep= 0; int max = -99; int maxRep= 0; Random rand= new Random(); for(int i = 0; i < 365; i++) { int x = rand.nextInt(82,529) + 1; System.out.println("Day " + i + " : " + x + " people"); if (x < min || min == -99){ min =x; } if(x == min) { minRep++; } if(x > max || max == -99) { max = x; } if(x==max) { maxRep++; } } // End of For Loop System.out.println(); System.out.println("The following days have " + max + " people: (Max)"); System.out.println(maxRep); System.out.println(); System.out.println("The following days have " + min + " people: (Min)"); System.out.println(minRep);