Q:

How to delete one value from, and decrease the length of, a String array

I don't understand how to decrease the length of a String array. For example, with this code:
String[][] array = new String[5][2];

array[1][0] = "what";
array[2][0] = "is";
.....
.....
array[5][0] = "?";

How can I delete array[5][0] and get array.length to be 4, not 5?

A:

If you want to remove the array element from the end , you can also use Arrays.copyOf() since jdk 1.6+ 
For example:
array = Arrays.copyOf(array, 4);

It just copy the original array 's first 4 elements to a new array , so it have the same effect as deleting the array[5]
If you want to remove an element from an specified index , you can use ArrayUtils.remove() from Apache Commons Lang 3 to do it .
/**Remove the element at index 3**/
array =ArrayUtils.remove(array, 3);

