Question: Need help implementing this method. All the methods that are in the interface are already implemented. Need help with the last one in both classes


2. Consider a member method replaceAll() for the List ADT that replaces all the instances of an elemente with element f. The method returns the total number of instances replaced. The prototype for the method is as follows: public int replaceAll (E e, Ef) And this method to the interface and implement it for the ArrayList and LinkedList classes. dow Help ArrayList.java List.java * 1 package ciic4020.list; 3 public interface List
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
