View Single Post
  #2 (permalink)  
Old 07-18-2007, 06:49 PM
JavaBean's Avatar
JavaBean JavaBean is offline
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
You have two errors there.

First of all while calling a method or constructor, you dont write the types of the parameters. So use like this:

Code:
AddressBookEntry ab = new AddressBookEntry(name, address, tel, email);
When you fix this and try to compile, you will see that you get another error: "can not find symbol". This is because you did not define and initialize your parameters (e.g. name) in that constructor. Define and initialize those parameters to fix this error:

Code:
String name = "John";
Reply With Quote