I haven't used this language, but since this is a new to Java forum I'll give you the benefit of my ignorance...
Doesn't the error message say it all? Your AddressBook class has an add() method so you can call add() with the new entry. But you get an error when you call remove() because there is no remove() method defined anywhere.
Try adding the following to the definition of AddressBook:
|
Code:
|
def remove(int ndx){
// do stuff to ensure ndx is a valid index and, if it is,
// remove the item from the array.
} |