CS202 Java-155
Observer Methods
l
public boolean isEmpty()
l
// Returns true if no components; false otherwise
l
{
l
return (numItems == 0)
l
}
l
public int length()
l
// Returns the number of components in the list
l
{
l
return numItems;
l
}
l