📄 trycatchsequencel.java
字号:
/*
just for a test to see weather it is valuable
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
<HTML><HEAD><TITLE>程序员联合开发网-会员管理</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="normal.css" rel=stylesheet>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<style type="text/css">
<!--
body {
margin-top: 0px;
}
-->
</style></HEAD>
<BODY>
<TABLE cellSpacing=0 cellPadding=0 width="739" align=center border=0 height="110">
<TBODY>
<TR>
<TD height="90" width="268"><a href="http://www.pudn.com"><IMG src="http://pudn.nease.net/images/pudn.gif" border=0 width="268" height="88"></a></TD>
<TD height="90" width="491"><a href="dev_reg.asp" target="_blank"><img border="0" src="http://pudn.nease.net/images/pudn3.jpg"></a></TD>
</TR>
<TR>
<TD bgcolor="#BDDEFF" height="20" width="266">
<a href="/">首页</a>>><a href="download.asp?type_id=1">下载中心</a></TD>
<TD align="right" bgcolor="#BDDEFF" height="20" width="489">
<font size="2"><a href="dev_reg.asp" target="_blank">注册开发者</a>
<a href="dl.asp?id=2724" target="_blank">购买短信平台</a></font></TD>
</TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="739" align=center border=0 height="363">
<TBODY>
<TR>
<TD vAlign=top width="126" bgcolor="#EFEFF7" height="363"><BR>
<TABLE cellSpacing=0 cellPadding=0 width="98" align=center border=0 height="155">
<TBODY>
<TR>
<TD height=43 width="96"><a href="upload_new.asp" target="_blank">上载源码加点数</a></TD></TR>
<tr>
<TD height=43 width="96"><a href="chg_pass.asp" target="_blank">修改密码</a></TD>
</tr>
<tr>
<TD height=43 width="96"><a href="comment.asp?type_id=1010" target="_blank"><font color="#FF0000">提点建议</font></a></TD>
</tr>
<tr>
<TD height=43 width="96"><a href="vip.asp" target="_blank">升级为VIP会员</a></TD>
</tr>
<tr>
<TD height=43 width="96"><a href="upload_log.asp" target="_blank">上载日志</a></TD>
</tr>
<tr>
<TD height=43 width="96"><a href="down_top.asp" target="_blank">下载排行榜</a></TD>
</tr>
<tr>
<TD height=43 width="96"><a href="user_list.asp" target="_blank">开通用户列表</a></TD>
</tr>
</TBODY></TABLE>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="98" height="46">
<tr>
<td width="96" colspan="2" height="14"><b>上载排行榜</b></td>
</tr>
<tr>
<td width="58" height="32"><a href=mailto:programsalon@hotmail.com>站长</a></td>
<td width="36" height="32">3780</td>
</tr>
<tr>
<td width="58" height="32"><a href=mailto:abc@abc.com>请不要用公</a></td>
<td width="36" height="32">1398</td>
</tr>
<tr>
<td width="58" height="32"><a href=mailto:whzeng@126.com>曾维宏</a></td>
<td width="36" height="32">154</td>
</tr>
<tr>
<td width="58" height="32"><a href=mailto:kivens@china.com>中文名字</a></td>
<td width="36" height="32">101</td>
</tr>
<tr>
<td width="58" height="32"><a href=mailto:jerryhfb@tom.com>何福保</a></td>
<td width="36" height="32">100</td>
</tr>
</table>
</center>
</div>
</TD>
<TD background="images/vd.gif" width="4" height="363"></TD>
<TD height="363" align="center" valign="top" width="603">
<table width="95%" border="0" cellspacing="0" cellpadding="0" style='line-height: 150%' height="456">
<tr>
<td width="100%" height="20" valign="top">
</td>
</tr>
<tr>
<td height="26" colspan="2"><p style="line-height: 150%"><font color=#FF0000> <B>加入www.pudn.com,开创自己的软件事业</B>!欢迎【<a href=dev_reg.asp target="_blank">注册开发者</a>】,并【<a href=dev_admin target="_blank">建立或加入开发室</a>】</font></p></td>
</tr>
<tr>
<td height=25> <font color=red><B>翻译源码说明加点数</B></font>:您只要把本站源码名称和说明由中文翻译为英文,每翻译一个就可以得到5个下载点数,要求每次翻译至少10个。翻译方法参见<a href=download2.asp?type_id=5>【开始翻译】</a>。刚注册的用户没有源码上载可以通过翻译源码说明来开通帐号。</td>
</tr>
<tr>
<td width="100%" height=30>
用户ID不存在或密码不正确,请<a href=javascript:history.back()>返回</a>重新登录。<BR>如果忘记密码请将您的详细注册信息发送到<a href=mailto:netcom@163.net>netcom@163.net</a>以获取密码。<BR>新用户请点击<a href=reg.asp>会员注册</a>。
*/
public class TryCatchSequencel
{
public static void main(String args[])
{
int a,b,c;
try
{
a=100;
b=Integer.parseInt(args[0]);
c=a/b;
System.out.println("c="+c);
System.out.println("没有异常发生!");
}
catch(ArithmeticException e)
{
System.out.println("捕获到异常了!");
e.printStackTrace();
}
finally
{
System.out.println("必定执行的代码!");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -