hi danpost I have added the consructor but it is still giving the errors and it is the me that the firstname, lastname, telephone, email add, homeadd has not been initialized, why do i have to initialized that, and how do i initialized it or am I missing something
the customer class above was the one before I had before I add the constructor, that is why you are not seeing the constructor in there, so am going to post again so that u can see it is right there. so plz tell what to do again many thanks and here is the customer classs again
public class Customer { private String first_name; private String last_name; private String email_add; private String home_add; private String telephone; public Customer(String first_name, String last_name, String email_add, String home_add, String telephone){ this.first_name = first_name; this.last_name = last_name; this.email_add = email_add; this.home_add = home_add; this.telephone = telephone; } public String getfirst_name(){ return first_name; } public String getlast_name(){ return last_name; } public String getemail_add(){ return email_add; } public String gethome_add(){ return home_add; } public String gettelephone(){ return telephone; } public void setfirst_name(String first_name){ this.first_name=first_name; } public void setlast_name(String last_name){ this.last_name=last_name; } public void setemail_add(String email_add){ this.email_add=email_add; } public void settelephone(String telephone){ this.telephone=telephone; } @Override public String toString(){ return "Customer details"+ " First name of the customer :" + this.first_name+","+ "Last name of the customer:" + this.last_name+","+ "Home addres of the customer: "+ this.home_add+","+ "Email address of the customer: "+this.email_add+ ","+ "The customer telephone contact: "+ this.telephone; } }