I want to make simple/small programs that are mini-versions of real-life applications that use Collections. This is to practice and remember the chapter by DOING.
For example, i had been given an example before as shown below :
Matthew Brown wrote:A Map is like a directory, that contains entries in pairs. Each pair is made up of a "key" and an "object", and given a key you can look up the associated object.
Think of a telephone directory. It contains names associated with phone numbers. If you know someones name, it's easy to find the phone number. If you were writing that in code, you'd probably use a Map.
Can anyone suggest real-life examples or even theoretical ones which make use of the following, preferably one at a time :
1- ArrayList
2- LinkedList
3- HashSet
4- LinkedHashSet
5- TreeSet
6- SortedMap
7- HashMap
8- TreeMap
9- LinkedHashMap
10- PriorityQueue ......etc
PS : I feel that such a question is good for an interview because it will
test the ability to apply the theory. Just knowing the text-book definitions and methods is not enough.