Coggle requires JavaScript to display documents.
List() : creates a new list that is empty. It needs no parameters and returns an empty list.
add(item) adds a new item to the list. It needs the item and returns nothing. Assume the item is not already in the list.
remove(item): removes the item from the list. It needs the item and modifies the list
search(item):searches for the item in the list. It needs the item and returns a boolean value.
isEmpty() : tests to see whether the list is empty. returns a boolean value.
size( ): returns the number of items in the list. It needs no parameters and returns an integer.