Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 18th, 2012  |  syntax: None  |  size: 0.55 KB  |  hits: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if I try exception handling
  2.  
  3.  Exception in thread "main" java.lang.VerifyError: (class: mirah/MString, method: to_i signature: ()I) Mismatched stack types
  4.         at Usage.main(usage.mirah:2)
  5.  
  6.  
  7. if I dont use exception
  8.  
  9.  
  10.  
  11.  java Usage
  12. 20
  13. Exception in thread "main" java.lang.NumberFormatException: For input string: "20.5"
  14.         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
  15.         at java.lang.Integer.parseInt(Integer.java:458)
  16.         at java.lang.Integer.parseInt(Integer.java:499)
  17.         at mirah.MString.to_i(mirah.mirah:21)
  18.         at Usage.main(usage.mirah:9)