title: reverse multimap in java
body: <p>I have a multimap and I iterate it with <code>hasnext()</code>.</p>
  
  <pre><code>Set keySet = myMap.keySet();    
  
  Iterator keyIterator = keySet.iterator();    
  
  while (keyIterator.hasNext() ) {    
  
      Integer key = (Integer) keyIterator.next();    
  
      System.out.println("K"+key);    
  
      List values = (List) myMap.get(key);    
  
      System.out.println("V"+values);    
  
  }       
  </code></pre>
  
  <p>And the output is : </p>
  
  <p>K=4,    </p>
  
  <p>V=[Sam India],    </p>
  
  <p>K=3,    </p>
  
  <p>V=[Sam, Sam US],    </p>
  
  <p>K=5,    </p>
  
  <p>V=[Sam]    </p>
  
  <p>But I need the output in the reverse format like :    </p>
  
  <p>K=5,    </p>
  
  <p>V=[Sam],    </p>
  
  <p>K=3,    </p>
  
  <p>V=[Sam, Sam US],    </p>
  
  <p>K=4,    </p>
  
  <p>V=[Sam India]    </p>
  
  <p>Can we have hasPrevious() in multimap?  </p>