Finals Comprog Reviewer
Finals Comprog Reviewer
accessed using indices: num[0], num[1], Row [1][0] [1][1] [1][2] [1][3] [1][4] 2
num[2], num[3], num[4] Row [2][0] [2][1] [2][2] [2][3] [2][4] 3
Note: every value in programming starts at index “0”. Row [3][0] [3][1] [3][2] [3][3] [3][4] 4
Arrays.equals(arrayName, arayName) -
Checks if two arrays of the same type are
equal (dapat equal yung elements). Returns
true if they are, otherwise, false.
boolean x = Arrays.equals(a, c);
System.out.println(x);// returns true
because arrays 'a' and 'c' are equal.