📄 manycatch.java
字号:
public class ManyCatch{ public static void main(String argv[]) { try { int i = Integer.parseInt(argv[0]); int ans = 10 / i; } catch (ArithmeticException ae) { System.err.println("You must input a nonzero number!"); } catch (NumberFormatException ne) { System.err.println("You must input a integer number!"); } catch (RuntimeException re) { System.err.println("RutimeException: "+re); } catch (Exception e) { System.err.println("Exception: "+e); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -