登录
首页 » Java » java-Exe5_1

java-Exe5_1

于 2012-12-14 发布 文件大小:3KB
0 295
下载积分: 1 下载次数: 4

代码说明:

  1. 分别使用Vector、Hashtable、Stack,ArrayList、LinkedList和HashSet作为容器类,实现以下要求: (1) 向容器中添加1,000,000个随机整数。 (2) 遍历容器中的所有元素。 (3) 随机产生100,000个整数,在容器中查找这些整数。 (4) 随机产生100个整数,从容器中删除这些整数。 (5) 统计完成以上各个操作需要的时间。 比较一下不同操作在不同数据结构下的性能差异。程序文件命名为Exe5_1.java。 (51 respectively using Vector, Hashtable, Stack, ArrayList, LinkedList and HashSet as the container class, to achieve the following requirements: ( 1) are added to the container 1000000 random integers. ( 2) to traverse all the elements in the container. ( 3) 100000 randomly generated integer, in the container to find these integers. ( 4) random produces 100 integers, is removed from the container of these integers. ( 5) complete the statistics above each operation requires time. Compare the different operating at different data structure performance differences. Program file named Exe5_1.java )

文件列表:

java Exe5_1
...........\Exe5_1.java,5218,2012-10-31
...........\Exe5_2.java,6572,2012-11-09

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

发表评论

0 个回复

  • AirConditioningCode
    分布式温控系统基本要求 1. 中央空调是冷暖两用,但一次只能使用一种温控装置。当设置为供暖时,供暖温度控制在25°C~30°C之间,当设置为制冷时,制冷温度控制在18°C~25°C之间。 2. 中央空调具备开关按钮,只可人工开启和关闭,中央空调开启后处于待机状态。当关闭后,不响应来自房间的任何温控请求。当有来自从控机的温控要求时,中央空调开始工作。当所有房间都没有温控要求时,中央空调的状态回到待机状态。 3. 房间内有独立的从控空调机,但没有冷暖控制设备。从控机具有一个传感器,实时监测房间的温度,并与从控机的目标设置温度进行对比,决定是否需要制冷或制热,并向中央空调机发出请求。如果从控机发出的请求和中央空调设置的冷暖控制状态发生矛盾时,以中央空调机的状态优先,即中央空调机不予响应。 4. 从控机只能人工方式开闭,并通过控制面板设置目标温度,目标温度有上下限制。所有房间的初始目标温度由中央空调机设置,每个房间的空调机开启时要读取中央空调机预置的房间温度。温度升降范围应该在目标温度的上下1 °C。房间不考虑大小和管道的分布及大小问题,在达到目标温度后,房间的温度每分钟上下变化0.1°C。 (Basic requirements of a distributed temperature control system 1. Central air conditioning is the well-being of dual-use, but can only use a thermostat device. When set to heating, the heating temperature at 25 ° C ~ 30 ° C, and when set to cooling, the cooling temperature at 18 ° C ~ 25 ° C between. 2. Central air conditioning with switch buttons can only be manually opened and closed, central air-conditioning turned on in standby mode. When closed, do not respond to a request from the room of any thermostat. When the machine from temperature control from the control requirements, central air-conditioning work. When all rooms are no thermostat demand, central air condition back to standby. 3. Room independent from the control air conditioning, but no climate-control equipment. From the control machine with a sensor, real-time monitoring the temperature of the room, and with the goal set from the control unit compares the temperature to determine the need for cooling or he)
    2021-04-14 20:58:54下载
    积分:1
  • CaughtClassMarker
    This InstructionVisitor marks all classes that are used in an instanceof test by any of the instructions that it visits.
    2013-11-28 11:07:04下载
    积分:1
  • schedule
    安卓日程管理系统。包括一些基本的日程功能包括文字和音频提示功能。(Andrews schedule management system. The schedule includes some basic features include text and audio prompts.)
    2014-03-24 15:34:17下载
    积分:1
  • src
    说明:  java 编程(大二)大作业 网络爬虫 详情见代码(Java programming (sophomore year) big job: Internet worm)
    2020-12-14 15:09:14下载
    积分:1
  • mywork
    自己写的java小程序,包括一个邮件界面,并对界面上的控件进行监控,对事件反应并通过命令提示符显示出来(Write their own Java applets, including an e-mail interface, the controls and interface monitoring, incident response and displayed through the command prompt)
    2012-04-02 17:16:28下载
    积分:1
  • 04【熟悉】excel 的导出xls
    说明:  Excel的导出,主要针对项目中使用到poi的说明........................(Export of Excel, mainly for the description of POI used in projects)
    2020-06-23 20:00:01下载
    积分:1
  • yht
    说明:  是一个基于java开发的拍卖系统 非常适合初学者看(Is a java-based development of auction system is ideal for beginners to see)
    2008-11-10 21:31:05下载
    积分:1
  • kaoqin
    java+jsp学生考勤系统源代码,源代码齐全,适合学生课程设计(java+jsp student attendance system source code, source code, and curriculum design for students)
    2014-01-03 21:27:48下载
    积分:1
  • SecurityPolicyTests
    This is a series of unit tests for backup/restore of the SecurityPolicy class.
    2014-02-18 14:55:04下载
    积分:1
  • filtering
    用JAVA写的带通滤波代码,实现思路很简单,没有采用各种数字滤波的方法。而是通过傅里叶变换到频域,将要求外的频率均置0,再逆傅里叶变换得到的。效果还不错。(Written using JAVA bandpass filtering code to achieve the idea is very simple, without using a variety of digital filtering approach. But through the Fourier transform to the frequency domain, the frequency requirements are set to 0, then the inverse Fourier transform. Results were pretty good.)
    2021-01-15 00:08:46下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载