public class ScratchPad
extends java.lang.Object
Lab04
In this lab you will practice implementing classes,
using APIs, and handling memory references.
You will implement a linked list for storing primitive int values.
This class uses the IntListEntry class, which has been written for you.
Part of the IntList class has also been written for you.
The first step of this lab is to read the API documentation for
the IntListEntry class, as well as the API documentation for methods
IntList(), getLength(), get(), prepend(), and toString() in the IntList
class. This documentation is available in the doc folder of the project
directory, or through the class schedule web-page. Read the full
descriptions, not just the method summaries.
The next step is to look at the main() method of ScratchPad.java to see
typical usage of IntList objects, in particular the five methods listed in
the previous paragraph. Complete the task described in the last comment
of ScratchPad.java.
Now you are ready to implement the remaining methods of IntList. Follow
the directions in the comments below (starting at Part 1), which are also
included in the API documentation.
- Author:
- Your Name Here