Re: why am I getting this error "varible temp1 might not have been initialized"
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Sat, 25 Mar 2006 19:07:27 GMT
On 25 Mar 2006 10:29:00 -0800, "sandie" <amanda772007@xxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :
As of now, the program waits for me to enter something. What do I need
to do if the perosn just press enter key w/o putting a float value. And
a string vale? How do I let the program contiue to run so that I can
assing the default value?
What happens when you do that? Do you get 0, a null, a empty string,
an exception? Find out. Then put in code to detect that condition and
either issue and error message and repeat the question or assume some
default value.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- Follow-Ups:
- References:
- Prev by Date: Re: Using Sacnner's nextFloat()
- Next by Date: Streaming audio
- Previous by thread: Re: why am I getting this error "varible temp1 might not have been initialized"
- Next by thread: Re: why am I getting this error "varible temp1 might not have been initialized"
- Index(es):