Saturday, August 6, 2011

Try and catch: have a look at the example?

f is defined inside the try block so it will not be available in the finally or catch block. you need to define float f=0 outside try and then do a ignment like f= flaoat.parse(..)inside the try block.

No comments:

Post a Comment