Search:

Type: Posts; User: Json

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    5,073

    Re: Eliminating duplicate values

    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...
  2. Replies
    7
    Views
    5,073

    Re: Eliminating duplicate values

    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...
Results 1 to 2 of 2