Let's say I have the following Java code snippet
ArrayList<Double> myList = new Double[100];
for (Double x : myList)
x = randomDouble();
Does this really change myList or just a dummy variable?
I understand that I should just try this segment of code, but I think that this is what I should be able to Google or search on this site, and a few requests still have not brought anything useful.
source
share