登录
首页 » Java » java-Exe5_1

java-Exe5_1

于 2012-12-14 发布 文件大小:3KB
0 177
下载积分: 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 个回复

  • GexfGenarate
    说明:  用于生成gexf格式的数据文件,为后续的可视化开发服务(Used to generate data files in gexf format, serving for subsequent visualization development)
    2020-06-17 03:20:01下载
    积分:1
  • graphics
    实验一:类与对象实验: 几何图形类的设计 实验目的:掌握用类进行面向对象程序设计的方法,掌握使用对象作为类的成员变量,掌握方法的参数传递,掌握静态域和静态方法。 实验内容:编写4个类:Rectangle、Circle、Geometry、Exa,具体要求如下: ① Rectangle类有double型成员变量表示矩形左上角的位置坐标及矩形的宽和高,要求提供修改和返回各成员变量的方法。 ② Circle类有double型成员变量表示圆心坐标和圆的半径,要求提供修改和返回各成员变量的方法。 ③ Geometry类有Rectangle类和Circle型的成员变量rect和circle。即Geometry类创建的对象由一个矩形和一个圆组合而成。要求该类提供修改rect、circle位置和大小的方法;提供显示rect和circle位置关系的方法,并能够显示圆是否完全坐落于矩形中。 ④ 要求能对创建的Rectangle类和Circle类对象数目进行统计。 Exa类含有main方法,在main方法中用Geometry类创建对象,该对象调用相应的方法 设置圆和矩形的位置及大小并输出圆是否包含在矩形中。输出当前Rectangle和Circle 对象数目。 (test one)
    2014-05-05 08:37:25下载
    积分:1
  • 3.5.0
    mybatis3.5.0核心包,国内下载太麻烦,中转一下(Mybatis 3.5.0 core package, domestic download too troublesome, transfer)
    2020-06-20 18:00:02下载
    积分:1
  • snmp_demo
    多线程局域网内snmp和在线设备发现拓扑图(Snmp and device discovery in a multithreaded LAN topology)
    2021-03-14 14:49:23下载
    积分:1
  • Java2answer
    Java2 实用教程 耿祥义 实验代码和答案 非常好的使用资料(java 2 answer for the java2 second version very good)
    2009-06-09 07:13:07下载
    积分:1
  • ClientSocket
    精通Java网络编程中的 sockat 编程源代码(Proficient in Java Network Programming sockat programming source code)
    2011-05-09 19:31:20下载
    积分:1
  • YOYOcode
    YOYO播放器的源代码,是用Java语言写的,非常经典,拿出来供各位Java学习者学习(YOYO player source code is written in Java language, very classic, you out for Learners Java)
    2010-10-22 14:55:31下载
    积分:1
  • codingforYXM
    纯手编的超市会员管理系统,可支持会员注册,会员登录(验证码功能),会员查询,会员删除等功能,界面友好,易于操作。(Pure hand-woven supermarket membership management system that supports membership registration, member login, membership inquiries, membership and delete functions, user-friendly, easy to operate. )
    2013-11-24 10:15:06下载
    积分:1
  • Java-Web-Development
    本人学习java web开发时的读书笔记,可供初学者参考学习J2EE编程知识,迅速建立相关的知识结构。(I am learning java web development study notes, reference for beginners to learn J2EE programming knowledge to quickly build the knowledge structure.)
    2013-05-18 01:52:42下载
    积分:1
  • oscache
    oscache的缓存实例,可以用于学习二级级缓存,及应用到项目中,加速数据库查找效率。(oscache cache instance, can be used to study the two-level cache, and applied to the project, to accelerate the efficiency of database lookup.)
    2012-07-10 15:53:32下载
    积分:1
  • 696518资源总数
  • 105438会员总数
  • 15今日下载