added a file option to test situations such as a file full of identical items and duplicates. kept the number option for randomness. Java 8 also apparently has some neat forEach function in ArrayList.