I am initializing an array like this:
public class Array { int data[] = new int[10]; /** Creates a new instance of Array */ public Array() {
You cannot initialize an array like that. In addition to what others have suggested, you can do :
data[0] = 10; data[1] = 20; ... data[9] = 91;