Here is how I might test the removal scheme: I would make the program tell me what is working on and what it is doing at each step.

Maybe something like:


import java.util.ArrayList;
import...