Connecting Tech Pros Worldwide Forums | Help | Site Map

new to java, need help

timothy ma and constance lee
Guest
 
Posts: n/a
#1: May 27 '07
Sirs/Madam

I encounter the problem on date field.
Sometimes, when there is no date, then it will return the null object. When
I want to check by

aDate.toString() = "" or null, it throws exception.

How can I ensure they return the value or not.

Please help



IchBin
Guest
 
Posts: n/a
#2: May 27 '07

re: new to java, need help


timothy ma and constance lee wrote:
Quote:
Sirs/Madam
>
I encounter the problem on date field.
Sometimes, when there is no date, then it will return the null object. When
I want to check by
>
aDate.toString() = "" or null, it throws exception.
>
How can I ensure they return the value or not.
>
Please help
>
>
if( aDate == null ){ }


--
Thanks in Advance... http://weconsulting.org
IchBin, Philadelphia, Pa, USA http://ichbinquotations.weconsulting.org
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Closed Thread