⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manycatch.java

📁 JAVA SE6 全方位学习 朱仲杰 编著 机械工业出版社出版
💻 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 + -