Write the method, removeAll, that removes the Integer given from the given list and returns the new list. If list contained 8,9,3,3,3,6,7,3,9 a call to removeAll (three, list) would return 8,9,6,7,9. three is an Integer with value 3.
public ArrayList removeAll(Integer num, ArrayList list) // without an iterator
{
}
public ArrayList removeAll(Integer num, ArrayList list) // use an iterator
for this one
{
}