public void remove(int index) {
        if (index >= listSize || index < 0)
            throw new IndexOutOfBoundsException();

        listSize --;
        if (index == listSize) {
            list[listSize] = null;
            return;
        }

        for (int i = index; i < listSize; i++) {
            list[i] = list[i+1];
        }
        list[listSize] = null;
    }
Remove the light at the given index.

@param index the zero-based index of the Light to be removed (&ge;0)
jme3-core/src/main/java/com/jme3/light/LightList.java