Re: Beginnerquestion about if (personName==null || personName.equals(""))
Re: Beginnerquestion about if (personName==null || personName.equals(""))
- Subject: Re: Beginnerquestion about if (personName==null || personName.equals(""))
- From: Art Isbell <email@hidden>
- Date: Thu, 6 Sep 2007 23:59:36 -1000
On Sep 6, 2007, at 11:44 PM, Rainer User wrote: Why i have to use personName.equals("") +and+ personName==null to detect if personName is empty or not?
personName could have a null value or it could be a non-null String object whose value is the empty string. Both situations indicate a personName with no value, so both conditions need to be tested.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden