new to java, need help  
Author Message
timothy ma and constance lee





PostPosted: 2007-5-27 7:28:00 Top

java-programmer, new to java, need help 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





PostPosted: 2007-5-27 13:58:00 Top

java-programmer >> new to java, need help timothy ma and constance lee wrote:
> 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-)