Connecting Tech Pros Worldwide Help | Site Map

new to java, need help

  #1  
Old May 27th, 2007, 12:35 AM
timothy ma and constance lee
Guest
 
Posts: n/a
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


  #2  
Old May 27th, 2007, 07:05 AM
IchBin
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with input and scanner keyboard..NEW TO JAVA nitric answers 2 September 21st, 2008 01:22 AM
Hello im new to java & need some basic help please PeaceLovinHippy answers 5 October 30th, 2007 09:43 AM
I'm new to Java, need help with Arrays ray2007colon answers 1 March 26th, 2007 12:27 PM
Very new to Java, need help Starting_Anew answers 10 October 4th, 2006 07:58 PM