In Java, how does one get the values of a HashMap returned as a List?
HashMap
List
HashMap map = new HashMap(); map.put (1, "Mark"); map.put (2, "Tarryn"); List list = new ArrayList(map.values()); for (String s : list) { System.out.println(s); }