ADT - basic list data type
Calling on All Programmers;
I have a challenging (for me) question that I really need some help to get going in the right direction. I need to code a NewList (ADT) that will implement a separate file shown below:
--------------------------------------------
interface SmallList <ItemType> //Small list
{
public static final int MAX_LENGTH=5;
public boolean insertItem (ItemType newItem);
public boolean delItem();
public boolean newPos();
public ItemType getItem();
} // End of SmallList
--------------------------------------------
What I have at this point is a blank page quite frankly. I need some help to implement the interface shown above. Any help, comments, direction, etc. would be much appreciated.
To start:
public class NewList <ItemType> implements SmallList <ItemType>
{
}
Thanks
|