Please supply more details. What happens? What happens when you simply print out the array (System.out.println(allStatsArray2) ?
posted 9 years ago
Well, unfortunately I changed all the code before I posted so I will have to take some time to rewrite a sampleClass to post. I just read the faq on how to post, will will give some more effort before I repost.
Originally posted by Chadd Franck: Could someone tell me what is wrong?
assuming allStatsArray2 is an Integer.
Have you also initialized each element of the array? "new Integer[X]" creates a new array object alright, but all of its elements remain null (or false for boolean, 0 for numbers, \u0000 for char). You need to initialize each one separately.