Java tutorial
//package com.java2s; import java.util.Arrays; import java.util.List; import java.util.Map; public class Main { public static List getMapKey(Map map) { Object[] arr = map.keySet().toArray(); return Arrays.asList(arr); } }