Hello my situation is that:
Qt Code:
  1. Vector<Word> _words = new Vector<Word>();
  2. //fill the vector
  3. Map<String, Integer> tham = new HashMap();
  4. //fill the map
  5. ..................................
  6. for ( String w : _words) {
  7. Collection c = tham.values();
  8. Iterator it= c.iterator();
  9. int value = 0;
  10. for ( String s : tham.keySet() ) {
  11. System.out.println(" -- string -- " + s);
  12. if ( s.equals( w )) {
  13. System.out.println(" -- string -- " + s);
  14. value = (Integer) it.next();
  15. }
  16. else it.next();
  17. }
  18.  
  19. }
To copy to clipboard, switch view to plain text mode 
This should work but it very slow. Is there a way to retrieve the Integer value of the Map with iterate on 'tham' all the times?

thanks,