Wednesday, 2 October 2013

Sorted String List Array Based- Add Method

Sorted String List Array Based- Add Method

public void add(String item) throws ListException
// Inserts item into its proper position in a sorted list
// Throws an exception if the item connot be placed on the list
{
try
{
}
catch(Exception e)
{
throw new ListException("Add to List failed: " + e.toString());
}
}
i need help with the add method, how would go about this?

No comments:

Post a Comment