📅  最后修改于: 2022-03-11 14:57:48.008000             🧑  作者: Mango
Set keys = map.keySet();
int[] array = new int[keys.size()];
int index = 0;
for(Integer element : keys) array[index++] = element.intValue();
for(int i : array) System.out.println(i);