将 map 赋值给 array
double[] unsortArray = new double[map.size()];double[] sortedArray = new double[constance_k];
for(int i = 1; i <= map.size(); i++)
{
unsortArray[i - 1] = (double)map.get(i);
}
报错
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double
求大神解释