Helo. I have two arraylist's:
public static ArrayList<Shop> shops;
with field: public static double dist;
and the second arraylist: public static ArrayList<Double> for_sort_shops;
I also have a code:
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);
}
And what result I've get?
How it's possible?! Help me to understand.