We have been asked to replace ArrayList and use interface List instead in two classes. I\'ve been trying but to no avail. If someone could help with one of the classes to show h
Change abstract public void act(ArrayList newAnimals); to abstract public void act(List newAnimals);
and in method body do newAnimals = new ArrayList();