httppastebincomXvx86C7k This is the code Im struggling on My
http://pastebin.com/Xvx86C7k
This is the code I\'m struggling on. My code isn\'t compiling and it doesn\'t use the code in the catch statement. why?
Solution
initialize num2 variable with 0.0(double num2=0.0;
also NumberFormatException is to capture when we convert a string to numeric type... please check the purpose of using it.
use some other relevant exception to capture your purpose.
