View Single Post
  #2 (permalink)  
Old 07-13-2007, 05:37 PM
susan susan is offline
Member
 
Join Date: Jul 2007
Posts: 44
susan is on a distinguished road
First of all, where is the Address class. The following line indicates that you have a class of type Address.
Code:
Address address = new Address(fname,lname,city,state,zip);
Second, you have declared a String and you named it Address, but you never assigned any value to it.
Code:
private String Address;
Actually, I don't think your class can be compiled, unless you have some other code that you have not posted here.

Solution: You must either declare a class of type Address that would handle the processing of Employee's addresses and, you must make sure that you stick to Sun Java Conventions so that other developers can read your code.
For example, a variable should not start with a capital letter etc.
Reply With Quote