登录
首页 » Java » java异常实验

java异常实验

于 2022-02-04 发布 文件大小:2.38 kB
0 96
下载积分: 2 下载次数: 1

代码说明:

实验2  异常 在实验1基础上, 定义一个异常类ScoreException,当输入的学生成绩不在[0,100]区间时,抛出该异常。 定义一个异常类StudentNumberException,当输入的学号不满足下述条件,则抛出该异常。条件为:学号为10位,第1位为2,第2位为0,其余位为数字0~9. 对Student和StudentTest类进行必要修改,提升程序的健壮性。   StudentTest类运行效果如下: 测试用例1: 请输入学生学号:2011211301 请输入学生姓名:王晓 请输入学生三门课成绩(数学,英语,科学):88,79,90 学生信息如下:

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • GA
    说明:  基于佳点集的遗传算法求解tsp问题 用java开发,(Based on good point set genetic algorithm tsp problem with java development,)
    2009-05-10 14:27:30下载
    积分:1
  • 用JAVA编写同时显示平抛和自由下体运动
    用JAVA编写同时显示平抛和自由下体运动-prepared with JAVA-throwing also showed lower body movement and freedom
    2022-08-31 16:15:04下载
    积分:1
  • Java 窗口程序Demo
    海康威视 java 窗口程序 demo(hikivision java demo)
    2018-01-28 15:57:41下载
    积分:1
  • MedCosmCGHMaker_13
    数字全息和计算程式 计算全息图的制作和再现过程主要分为以下几个步骤: 1抽样。得到物体或波面在离散样点上的值。 2.计算。计算物光波在全息平面上的光场分布。 3.编码。把全息平面上光波的复振幅分布编码成全息图的透过率变化。 4.成图。在计算机控制下,将全息图的透过率变化在成图设备上成图。如果成图设备分辨率不够,再经光学缩版得到实用的全息图。 5.再现。这—步骤在本质上与光学全息图的再现没有区别。 (Digital Holography and CGH for calculating the production and reproduction process is divided into the following steps: 1 sampling. Be objects, or wavefront-like point in the discrete value. 2. Calculated. Calculation of complex light plane in the holographic optical field distribution. 3. Coding. The hologram plane the complex amplitude distribution of light into a hologram coding changes in the transmittance. 4. As Fig. Under the control of the computer, the hologram transmittance change in the mapping device mapping. Mapping equipment, if not resolution, then reduced by the optical version of a hologram to be practical. 5. Reproduction. This is- these in essence a hologram and the optical reproduction is no different.)
    2009-06-24 00:45:57下载
    积分:1
  • 该代码用JAVA语言编写了一个聊天室,可多人同时开启客户端,进行会话。...
    该代码用JAVA语言编写了一个聊天室,可多人同时开启客户端,进行会话。-The code written in JAVA using a chat room can be open at the same time more than the client, the conversation.
    2022-02-04 15:43:58下载
    积分:1
  • engine_src
    一个J2ME游戏引擎,这个引擎可以用MYECLIPSE直接打开,大家可以尝试下(A J2ME game engine, the engine can be directly MYECLIPSE open, we can try the next)
    2010-01-06 09:48:15下载
    积分:1
  • ImplementingClassConstantFilter
    Implementing Class Constant Filter Source Code for Andriod.
    2013-12-16 16:13:14下载
    积分:1
  • MicroTankMIDleter
    新手简单模拟的J2ME坦克大战游戏的源代码,代码里有简单注释说明,很有利新手学习。(Novice a simple simulation J2ME Battle City game' s source code, code, there are simple and explanatory notes, it is beneficial to learn novice.)
    2009-09-30 15:04:17下载
    积分:1
  • Kalendar
    万年历可输出平年闰年,能在算出每月多少天,和每月日历(Calendar can be exported non-leap year leap year, can calculate the number of days each month, and monthly calendars)
    2010-01-11 11:37:46下载
    积分:1
  • fastjson-1.2.47
    将各种格式的数据转换为json格式的字符串 ajax交互数据时使用(When converting various formats of data into JSON format string Ajax interactive data)
    2020-06-22 17:00:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载