Convert a Map to a List

From CodeCodex

Implementations[edit]

Java[edit]

If you have this map:

Map<Key,Value> map;

Use:

List<Value> list = new ArrayList<Value>(map.values());