文件名称:TriangleExcep1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.23kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
个人原创代码:Java异常处理程序。编写Java Application程序,写一个方法void sanjiao(int a,int b,int c),判断三个参数是否能构成一个三角形,如果不能则抛出异常IllegalArgumentException,显示异常信息a,b,c+”不能构成三角形”,如果可以构成则显示三角形三个边长,在主方法中得到命令行输入的三个整数,调用此方法,并捕获异常。-Personal original code: Java exception handling procedures.Write java application procedures, write a method a void sanjiao (int a, int b, int c), to determine whether the three parameters form a triangle, if not an exception is thrown IllegalArgumentException, display the exception information to a, b, and c+ "can not constitutetriangle "can constitute a triangle the three sides of a long, three integers, the input of the command line in the main method call this method and catch the exception.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本Java程序设计详细要求.txt
TriangleExcep1.java
TriangleExcep1.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.