I would like to reduce the area arrto a loop do ... while, so it can be destroyed after the loop exits.
If I declare arrin a loop do while, I get an error:
character not found
I can declare this right before the loop, but then I keep the bloated arrin my memory, although I no longer need it.
do {
int[] arr = {0};
arr = evolve(arr);
} while (arr.length < 9999);
What is the right way to deal with this situation?
source
share