public static char[] subarray(char[] array, int startIndexInclusive, int endIndexExclusive) {
public static Object[] subarray(Object[] array, int startIndexInclusive, int endIndexExclusive) {
    public static char[] subarray(char[] array, int startIndexInclusive, int endIndexExclusive) {        if (array == null) {            return null;        }        if (startIndexInclusive < 0) {            startIndexInclusive = 0;        }        if (endIndexExclusive > array.length) {            endIndexExclusive = array.length;        }        int newSize = endIndexExclusive - startIndexInclusive;        if (newSize <= 0) {            return EMPTY_CHAR_ARRAY;        }        char[] subarray = new char[newSize];        System.arraycopy(array, startIndexInclusive, subarray, 0, newSize);        return subarray;    }