Seventeen Counter

Write a program SeventeenCounter that:

  1. fills an Integer ArrayList with 1000 random numbers between 0 and 99 inclusive, and
  2. goes through the list and counts how many times the number 17 appears in the list. (What would you expect the answer to be, on average?)

Extension

Then, write a program ValueCounter that creates the same random ArrayList, and uses a separate Array to keep track of how many times each value, 0-99 inclusive, appears in the ArrayList. Have the program report the results. (How would you expect the values to be distributed, on average?)