Problem
Write a program that counts the number of unique words in a large text file (say, Moby or the King James Bible).
Store the words in a collection and report the # of unique words.
Once you've created this collection, allow the user to search it to see whether various words appear in the text file.
Running a program and measuring its performance System.currentTimeMillis()
Returns an integer representing the number of milliseconds that have passed since 12:00am, January 1, 1970.
The result is returned as a value of type long, which is like int but with a larger numeric range (64 bits vs. 32).
Can be called twice to see how many milliseconds have elapsed between two points in a program.
How much time does it take to store Moby into a Array, ArrayList, LinkedList?