Giancarlo Marcelli wrote:the population of the array happens in another method, but i did not post the entire program at the time of the original post.
Shall I do that now?
I guess the most direct question is:
Is the array populated AFTER you do
in this method? My guess is no - it is not. That you populate an array you store in the winNumList variable, then you call the method shown above and do
This would create a NEW array, store it in the same variable (throwing the other array away to be garbage collected).
You should not be creating a new array and re-assigning it if the array has already been assigned and filled in.