Just use a LinkedHashMap if you wish to have a predictable iteration order.
See LinkedHashMap (Java Platform SE 6)
You can of course also use a TreeMap and create your own Comparator which you...
Type: Posts; User: Json
Just use a LinkedHashMap if you wish to have a predictable iteration order.
See LinkedHashMap (Java Platform SE 6)
You can of course also use a TreeMap and create your own Comparator which you...
If I was you I'd just have it in a Map<String, Integer>, that would sort out your issues automatically.
The key in the map would be the URL and the integer is just the number of hits.
After...