B14speedfreak
Technical User
- Mar 23, 2006
- 182
Hi all,
Thanks in advance for all help / posts on this one.
I have the following bit of code :
public void Person_create(String first_name, String surname, String title, int dob_year, int dob_day, int dob_month){
///load attributes into the class from the method above
this.First_Name = first_name;
this.Surname = surname;
this.Title = title;
///put the dobs into the dob date class
this.dob.set(dob_year, dob_month, dob_day);
}
When I try to create a new object of this class I get:
java.lang.NullPointerException
Any ideas where I am going (am using netbeans so the import statements are all sorted etc...)
thanks,
B14... aka... Marky Mark... the frozen monkey in the server room...
Thanks in advance for all help / posts on this one.
I have the following bit of code :
public void Person_create(String first_name, String surname, String title, int dob_year, int dob_day, int dob_month){
///load attributes into the class from the method above
this.First_Name = first_name;
this.Surname = surname;
this.Title = title;
///put the dobs into the dob date class
this.dob.set(dob_year, dob_month, dob_day);
}
When I try to create a new object of this class I get:
java.lang.NullPointerException
Any ideas where I am going (am using netbeans so the import statements are all sorted etc...)
thanks,
B14... aka... Marky Mark... the frozen monkey in the server room...