📄 5例子17.txt
字号:
public class Example
{
public static void main(String args[ ])
{
int n=0,m=0,t=0;
try
{
t=9999;
m=Integer.parseInt("8888");
n=Integer.parseInt("12s3a"); //发生异常,转向catch。
System.out.println("我没有机会输出");
}
catch(Exception e)
{
System.out.println("发生异常");
n=123;
}
System.out.println("n="+n+",m="+m+",t="+t);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -