文件名称:Execution
-
所属分类:
- 标签属性:
- 上传时间:2013-04-01
-
文件大小:1.57kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1. 掌握Java类中接口的概念和使用方法。
2. 掌握对象上转型和接口回调。
具体要求:实现一个程序,对用户的连续输入,给出相应的输出。
实验结果:
请输入:犯人总数 起始犯人号 初始步长
4 2 5
逃生的犯人是:0号
请输入:犯人总数 起始犯人号 初始步长
4 3 1
逃生的犯人是:1号
请输入:犯人总数 起始犯人号 初始步长
400 0 1000000
逃生的犯人是:97号
请输入:犯人总数 起始犯人号 初始步长
325 196 9999999999999999
逃生的犯人是:190号
请输入:犯人总数 起始犯人号 初始步长
finish
-1.Master the concepts and the use of the interface in the Java class.
2. Master the transition and interface callback object.
Specific requirements: a program, a continuous input of the user, to give the corresponding output.
Experimental results:
Please enter: prisoners starting the total number of prisoners No. initial step
425
The prisoners escape is: 0
Please enter: prisoners starting the total number of prisoners No. initial step
431
The prisoners escape is: 1
Please enter: prisoners starting the total number of prisoners No. initial step
40001000000
The prisoners escape is: 97
Please enter: prisoners starting the total number of prisoners No. initial step
325 1,969,999,999,999,999,999
The prisoners escape is: 190
Please enter: prisoners starting the total number of prisoners No. initial step
finish
2. 掌握对象上转型和接口回调。
具体要求:实现一个程序,对用户的连续输入,给出相应的输出。
实验结果:
请输入:犯人总数 起始犯人号 初始步长
4 2 5
逃生的犯人是:0号
请输入:犯人总数 起始犯人号 初始步长
4 3 1
逃生的犯人是:1号
请输入:犯人总数 起始犯人号 初始步长
400 0 1000000
逃生的犯人是:97号
请输入:犯人总数 起始犯人号 初始步长
325 196 9999999999999999
逃生的犯人是:190号
请输入:犯人总数 起始犯人号 初始步长
finish
-1.Master the concepts and the use of the interface in the Java class.
2. Master the transition and interface callback object.
Specific requirements: a program, a continuous input of the user, to give the corresponding output.
Experimental results:
Please enter: prisoners starting the total number of prisoners No. initial step
425
The prisoners escape is: 0
Please enter: prisoners starting the total number of prisoners No. initial step
431
The prisoners escape is: 1
Please enter: prisoners starting the total number of prisoners No. initial step
40001000000
The prisoners escape is: 97
Please enter: prisoners starting the total number of prisoners No. initial step
325 1,969,999,999,999,999,999
The prisoners escape is: 190
Please enter: prisoners starting the total number of prisoners No. initial step
finish
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Execution.java
ExecutionExperiment.java
ExecutionExperiment.java
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
