Re: why am I getting this error "varible temp1 might not have been initialized"



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.
.