2 Star 0 Fork 0

CS-IMIS-23/20172309_javaProgramming

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Zero.java 684 Bytes
一键复制 编辑 原始数据 按行查看 历史
20172309 提交于 7年前 . 例子11.1 Zero
//********************************************************************
// Zero.java Author: Lewis/Loftus
//
// Demonstrates an uncaught exception.
//********************************************************************
public class Zero
{
//-----------------------------------------------------------------
// Deliberately divides by zero to produce an exception.
//-----------------------------------------------------------------
public static void main(String[] args)
{
int numerator = 10;
int denominator = 0;
System.out.println(numerator / denominator);
System.out.println("This text will not be printed.");
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/CS-IMIS-23/20172309_javaProgramming.git
git@gitee.com:CS-IMIS-23/20172309_javaProgramming.git
CS-IMIS-23
20172309_javaProgramming
20172309_javaProgramming
master

搜索帮助