1// array of 5 strings
2String[] arr = new String[5]
3
4arr[0] = "Happy";
5arr[1] = "Birthday";
6arr[2] = "To";
7// etc...
1//data_type[] variable_name = { "stuff", "stuff", stuff" }
2String[] cars = {"car1", "car2", "car3"}
3
4or
5// data_type[] variable_name = new data_type[size]
6int[] myNumbers = new int[3]
7
1int intArray[]; //declaring array
2intArray = new int[20]; // allocating memory to array
3//OR
4int[] intArray = new int[20]; // combining both statements in one
1int[] array1 = new int[5]; //int array length 5
2String[] array2 = new String[5] //String array length 5
3double[] array3 = new double[5] // Double array length 5
4