Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

functional remove java

public int remove(int index)
    {
        checkIndex(index, 0, size-1);
        for (int i = index; i <= size; i++)
        {
            elementData[i] = elementData[i+1];
        }
        elementData[size] = 0;
        size--;
        return elementData[index];
    }
 
PREVIOUS NEXT
Tagged: #functional #remove #java
ADD COMMENT
Topic
Name
1+7 =