Please supply more details. What happens? What happens when you simply print out the array (System.out.println(allStatsArray2) ?
Chadd Franck
Ranch Hand
Joined: Nov 05, 2008
Posts: 50
posted
0
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.