CS-151 Labs
Lab 3. My ArrayList
In this lab, you will implement your first data structure - ArrayList. You will exercise the use of Java Generics and practice writing test cases for your program.
After this lab you should be able to:
- create a class using generics;
- use an abstract class to jumpstart an implementation;
- use JUnit to do proper testing;
- write Javadoc comments.
You would need to create and submit the following files:
MyArrayList.java
MyArrayListTest.java
(the JUnit tests forMyArrayList
)readme.txt
Let’s get started with a warmup!