Array in Java
Array in Java. Array, element, index(or subscript) int[] a = new int[12]; int[] a = {31, 28, 31, 30, 31, 30 31, 31, 30, 31, 30, 31}; a[0], a[1],…, and a[11] a.length String[] d = {“Sun”, “Mon”, Tue”, “Wed”, “Thu”, “Fri”, “Sat”};
184 views • 6 slides