Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.List; import java.util.Map; public class Main { /** * <p>turn source map's to list</p> * @param map source map * @return */ public static <T extends Object> List<T> turnMapKeyToList(Map map) { return new ArrayList<T>(map.keySet()); } }