
Untitled
By: a guest on
Apr 18th, 2012 | syntax:
None | size: 0.55 KB | hits: 31 | expires: Never
if I try exception handling
Exception in thread "main" java.lang.VerifyError: (class: mirah/MString, method: to_i signature: ()I) Mismatched stack types
at Usage.main(usage.mirah:2)
if I dont use exception
java Usage
20
Exception in thread "main" java.lang.NumberFormatException: For input string: "20.5"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:458)
at java.lang.Integer.parseInt(Integer.java:499)
at mirah.MString.to_i(mirah.mirah:21)
at Usage.main(usage.mirah:9)