View Single Post
Old Dec 19th, 2006, 10:52 PM   #1
JavaBeginner
Newbie
 
Join Date: Sep 2005
Posts: 7
Rep Power: 0 JavaBeginner is on a distinguished road
Unhappy 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
JavaBeginner is offline   Reply With Quote