Question: The textbook question is below. This is my code (before the textbook question). I can't seem to get (e) to work. Can I have some
The textbook question is below. This is my code (before the textbook question). I can't seem to get (e) to work. Can I have some help?
public void removeMid() {
int currentSize =values.length;
int pos = values.length/2;
if (!(values.length%2==0)){
for(int i = pos+1; i values[i-1] = values[i]; } currentSize--; } else { int pos2 =(values.length/2)-1; for(int i = pos+1; i values[i-1] = values[i]; for(int j = pos2+1; j values[j-1] = values[j]; } currentSize=currentSize-2; } } } This is the textbook question: 
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
