直升机。我有两个数组列表:
public static ArrayList<Shop> shops;
带字段: public static double dist;
和第二个数组列表:public static ArrayList<Double> for_sort_shops;
我也有一个代码:
for (int i = 0; i < shops.size(); i++) {
Log.i("palval", "for_sort_shops.get(i) = "
+ for_sort_shops.get(i));
}
for (int i = 0; i < shops.size(); i++) {
shops.get(i).dist = for_sort_shops.get(i);
}
Log.i("palval", "---------------------------------------");
for (int i = 0; i < shops.size(); i++) {
Log.i("palval", "shops.get(i).dist = "
+ shops.get(i).dist);
}
我得到了什么结果?
怎么可能?!帮助我理解。