|
Bill Teter email: william.teter@plattsburgh.edu |
|
|
lab 14 (exam) the linked ring class In this lab you will make a generic ring class. The objects in this class are in a circular structure. So long as the ring is not empty there is a "current" object. The Ring class should be generic. The methods the ring class supports are: public void add(AT x) public int size() public AT next() Extra credit public void remove() You can use my test programs. There are two, Test.java and TestExtraCredit.java. They are in: /home/teterwa/public/csc223/lab14 Requirements: Use a linked implementation with one field that references the current node. You will need a Node inner class and the node class will have a data field and a next field to reference the next node. |