Given two arrays, which code will output all the arrays' elements, in the order key, item followed by a newline?
int[] keysList = new int[SIZE_LIST];
int[] itemsList = new int[SIZE_LIST];
Question options:
System.out.println(keysList[SIZE_LIST - 1] + ", " + itemsList[SIZE_LIST - 1]);
System.out.println(keysList[SIZE_LIST] + ", " + itemsList[SIZE_LIST]);
for (i = 0; i < SIZE_LIST - 1; ++i) { System.out.println(keysList[i] + ", " + itemsList[i]);
for (i = 0; i < SIZE_LIST; ++i) { System.out.println(keysList[i] + ", " + itemsList[i]);}
for (i = 0; i < SIZE_LIST; ++i) { System.out.println(keysList[i] + ", " + itemsList[i]);