I am initializing an array like this:
public class Array { int data[] = new int[10]; /** Creates a new instance of Array */ public Array() {
you are trying to set the 10th element of the array to the array try
data = new int[] {10,20,30,40,50,60,71,80,90,91};
FTFY