I have a hashmap which currently contains people's names as keys and then has a string arraylist as the values which are the peoples currently owned cars.
For example:
Tom: BMW, Audi
John: Vauxhall
Steve: Audi, Ford
What I want to do is, is print each car's name and how many people have it as an owned car e.g. Audi: 2, BMW: 1
Any ideas of how I would do this?
Thanks.