!DOCTYPE html>
Given the following code:
public class MoveData {
public static void shiftUpArray(T[] dataset)
{
for (int i =1; i < dataset.length; i++) {
dataset[i] = dataset[i-1];
}
}
public static void main(String args[]) {
}
...
}
Which of the following would not be possible correct code inside the main method of MoveData?
int[] scores = {92, 18, 76, 76};
shiftUpArray(scores);
Integer[] bits = {32, 64, 256, 512};
shiftUpArray(bits);
WritingInstrument[] box = new WritingInstrument[20];
box[0] = new Marker();
box[1] = new Marker();
box[2] = new Pencil();
shiftUpArray(box);
String[] oceans = {"Pacific", "Indian", "Atlantic", "Arctic"};
shiftUpArray(oceans);
There are no hints for this question