View Single Post
  #8 (permalink)  
Old 11-27-2009, 09:25 AM
pbrockway2 pbrockway2 is offline
Senior Member
 
Join Date: Feb 2009
Posts: 624
Rep Power: 2
pbrockway2 is on a distinguished road
Default
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.
}
Reply With Quote