Add the following method to the ArrayIntList class from this chapter.
Write a method removeAll that accepts an integer value as a parameter and that removes all occurrences of the given value from the list.
public void removeAll(int value)
{
for(int i = 0; i < size; i++)
{
if(elementData[i] == value)
{
for(int j = i; j < size - 1; j++)
{
elementData[j] = elementData[j + 1];
}
size--;
i--;
}
}
}