登录
首页 » Java » java-Exe5_1

java-Exe5_1

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

  • ChannelsTest
    Note: the test case uses a temp text file named "test" which contains 31 characters : "P@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]".
    2013-12-06 14:11:35下载
    积分:1
  • pintu
    说明:  Java版的拼图游戏,玩家可以自己更换图片,只要你把它分成块,另外它是以成绩=1000-时间(秒)-移动步数*10来决定你是否输了,按F1键开始游戏,Y健预览图片。(In the Java version of the jigsaw puzzle, players can change the picture by themselves, as long as you divide it into blocks, in addition, it is determined by whether the score = 1000-time (seconds) -moving steps * 10. Yjian previews the picture.)
    2020-04-18 16:33:26下载
    积分:1
  • 用Java vue实现的电商后台管理
    【实例简介】用Java vue实现的电商后台管理
    2021-12-18 00:31:16下载
    积分:1
  • 基于Socket的即时通信系统(聊天室)
    【实例简介】
    2021-09-29 00:31:05下载
    积分:1
  • 8339006777StudentCourse
    新闻发布系统,基于J2EE架构。推荐使用MyEclipse+MySQL+apache开发(Press Release System, based on the J2EE architecture. Recommended MyEclipse+ MySQL+ Apache development.)
    2010-06-07 17:56:31下载
    积分:1
  • xiaoliuBBS
    功能简单,界面简单,适合初学者上手,简单易学(Function is simple, simple interface, suitable for beginners to use, easy to learn)
    2011-04-23 13:41:35下载
    积分:1
  • java_tutorial
    java ebook tutorial for beginers
    2009-11-22 09:02:47下载
    积分:1
  • mobile-Client
    中国移动MM7 彩信客户端java源码文档和数据库设计(China Mobile MMS MM7 client java source files and database design)
    2007-05-22 10:21:15下载
    积分:1
  • springboot-kafka
    kakfa+springboot+flume日志管理工具,可以方便日志管理(kafka and springboot and flume log4j manage log,if you need ,you could download,thank you !)
    2020-06-25 02:40:02下载
    积分:1
  • nine
    java实现的三种九宫重排算法,图形界面实现,编译后即可运行无需其他文件(java implementation of the three Jiugong rearrangement algorithms, graphical interface to achieve, you can run the compiled file without the other)
    2021-01-09 11:18:51下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载