1String[] vowels = { "a", "e", "i", "o", "u" };
2System.out.println(vowels);
3System.out.println(Arrays.toString(vowels));
4
1int[] arr; // Declaration dataType can int, float etc.
2arr = new int[N]; // Allocation N = 0 to 2,147,483,647.
1String[] aArray = new String[5];
2String[] bArray = {"a","b","c", "d", "e"};
3String[] cArray = new String[]{"a","b","c","d","e"};
1int[] intArray = { 1, 2, 3, 4, 5 };
2String intArrayString = Arrays.toString(intArray);
3
4// print directly will print reference value
5System.out.println(intArray);
6// [I@7150bd4d
7
8System.out.println(intArrayString);
9// [1, 2, 3, 4, 5]