object[] obj = nw object[100];
obj = HashMap.values().toArray();
然后遍历obj数组就可以了。