Question: Design and write a complete test program to test if the MyArrayList class in Listing 24.2 meets all requirements. Data from Listing 24.2 1 publ1c
Design and write a complete test program to test if the MyArrayList class in Listing 24.2 meets all requirements.
Data from Listing 24.2

![INITIAL CAPACITY = 16: private E[] data = (E[]) new Object[INITIAL CAPACITY]:](https://dsd5zvtm8ll6.cloudfront.net/si.question.images/images/question_images/1620/1/1/9/55660911004311a41620119554663.jpg)


1 publ1c class MyArrayList 1mplementS MyList { publ1c stat 1c f1nal 1nt INITIAL CAPACITY = 16: private E[] data = (E[]) new Object[INITIAL CAPACITY]: private int size = 0: // Number of elements in the list 2 3 4 5 6 ** Create an empty list / 7 pub11c MyArrayList () { 9 10 * Create a list from an array of objects /
Step by Step Solution
3.47 Rating (180 Votes )
There are 3 Steps involved in it
Here is a sample test program to test the MyArrayList class from Listing 242 import javautilArrayLis... View full answer
Get step-by-step solutions from verified subject matter experts
