1int[] data = {10,20,30,40,50,60,71,80,90,91};
2// or
3int[] data;
4data = new int[] {10,20,30,40,50,60,71,80,90,91};
5// or
6int[] data = new int[10];
7data = {10,20,30,40,50,60,71,80,90,91};
1int intArray[]; //declaring array
2intArray = new int[20]; // allocating memory to array
3//OR
4int[] intArray = new int[20]; // combining both statements in one