In the future, we don't need to know how URGENT your request is. Urgency should ideally be determined on a first-come, first-serve basis: If you posted before someone else, you should get precedence before that other person.
Further, it's simply rude to imply that your question is more important than other posters. This is a free, community run, forum. Please respect the fact that we're doing this free for the benefit of all, not just you.
alc6379
Cookie... That's it
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
lastName = getLastname();
firstName = getFirstName();
You have that in your Person constructor, and it makes no sense. You're calling a method that will obviously return a value that hasn't been set yet. I believe this is what you want to do:
public Person( String fn, String ln)
{
lastName = fn;
firstName = ln;
}
Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51