Problem

The actual List interface in the java.util package has several methods beyond the ones imp...

The actual List interface in the java.util package has several methods beyond the ones implemented in this chapter. Write a version of ArrayList that adds some or all of these methods. The methods to add are as follows (some headers are slightly modified; see the Java API Specification for descriptions of each method):

• public void addAll(int index, ArrayList list)

• public boolean containsAll(ArrayList list)

• public boolean equals(Object o)

• public int lastIndexOf(Object o)

• public boolean remove(Object o)

• public void removeAll(ArrayList list)

• public void retainAll(ArrayList list)

• public Object[ ] toArray( )

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 15
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT