LinkedHashMap values()

 
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashMap;

public class Main {
  public static void main(String[] args) {
    LinkedHashMap<String,String> lHashMap = new LinkedHashMap<String,String>();

    lHashMap.put("1", "One");
    lHashMap.put("2", "Two");
    lHashMap.put("3", "Three");

    Collection c = lHashMap.values();
    Iterator itr = c.iterator();

    while (itr.hasNext()){
      System.out.println(itr.next());
    }
  }
}
  
Home 
  Java Book 
    Collection  

LinkedHashMap:
  1. The LinkedHashMap Class
  2. new LinkedHashMap()
  3. new LinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder)
  4. clear()
  5. containsKey(Object key)
  6. containsValue(Object value)
  7. get(Object key)
  8. put(K key, V value)
  9. remove(Object key)
  10. LinkedHashMap size()
  11. LinkedHashMap values()