1 int[] intArray = new int[]{ 1,2,3,4,5,6,7,8,9,10 };
2 // Declarando un array literal
1// array of 5 strings
2String[] arr = new String[5]
3
4arr[0] = "Happy";
5arr[1] = "Birthday";
6arr[2] = "To";
7// etc...
1int intArray[]; //declaring array
2intArray = new int[20]; // allocating memory to array
3//OR
4int[] intArray = new int[20]; // combining both statements in one