You may refer to the java code and documentation for


Requirements

In this assignment, you will implement a lightweight version of an ArrayList class.

You may refer to the Java code and documentation for guidance, but you must write the implementation yourself.

Additionally, you must write unit tests for the class's methods. The use of good style is now a requirement.

Furthermore, you must remain in lab for the entirety of the class period unless you can demonstrate that you have correctly completed the assignment and understand the topics involved.

Design Specifications

You must implement the MyArrayList class with the following public methods.

Constructors MyArrayList(int initialCapacity) MyArrayList() // Required public methods add(E e) add(int index, E element) get(int index) set(int index, E element) size() indexOf(Object o) isEmpty() remove(int index) remove(Object o) contains(Object o)

You must write a test class with test functions for the following public methods (except the constructors):

add(E e) get(int index) size() remove(int index)

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: You may refer to the java code and documentation for
Reference No:- TGS02915770

Expected delivery within 24 Hours