Welcome to DrJava. Working directory is C:\cs12300 > int[] scores > scores null > scores = new int[10] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } > scores[6] = 12 12 > scores { 0, 0, 0, 0, 0, 0, 12, 0, 0, 0 } > scores[0] = 0 0 > scores[1] = 1 1 > scores[2] = 2 2 > for (int i = 0; i < 10; i++) scores[i] = i; > scores { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } > for (int i = 0; i < scores.length; i++) scores[i] = i; > scores = new int[30] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } > for (int i = 0; i < scores.length; i++) scores[i] = i; > scores { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 } > int[] bob > bob = scores // two names for one array object { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 } > scores[20] = 1000 // change scores 1000 > bob // check bob { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1000, 21, 22, 23, 24, 25, 26, 27, 28, 29 } > bob[10] = -12 // change bob -12 > scores // check scores { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -12, 11, 12, 13, 14, 15, 16, 17, 18, 19, 1000, 21, 22, 23, 24, 25, 26, 27, 28, 29 } > String[] s = new String[5] > s { null, null, null, null, null } > s[0] = "cat" "cat" > s[1] = "dog" "dog" > s { cat, dog, null, null, null } > s[4] = "apple" "apple" > s { cat, dog, null, null, apple } > s[3] = "" "" > s { cat, dog, null, , apple } > s[3] = "null" "null" > s { cat, dog, null, null, apple } > s[4] = "123" "123" > s { cat, dog, null, null, 123 } > s[2] null > s[3] // s[2] and s[3] are not the same thing "null" > s[4] "123" > String[] s2 = {"hello", "world", "bye", "what"} > s2 { hello, world, bye, what } > s2.length 4 > s2 = {"what", "bye"} // not allowed Invalid top level statement > int[] a2; > a2 = {3, 4, 5, 6} // not allowed Invalid top level statement > int[] a3 = {3, 4, 5, 6} > a3 { 3, 4, 5, 6 } >