登录
首页 » Java » java-Exe5_1

java-Exe5_1

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

  • defjava2
    JAVA读取DXF文件中的基本信息,可以自己进行扩展,还不错(java read dxf file information)
    2013-10-16 16:13:38下载
    积分:1
  • LuceneHelloWorld
    lucene 入门源码,来自征服ajax+lucene(running lucene )
    2009-06-14 13:38:00下载
    积分:1
  • Algorithm
    java 图形编程常用的,检验两条直线是否相交的java算法。(check two lines crossing each other )
    2009-09-11 19:35:27下载
    积分:1
  • 8758971589MyEclipse8.5
    这是MyEclipse8.5的学习手册,适合新手学习这个软件。(This is MyEclipse8.5 learning manual for beginners to learn the software.)
    2013-11-28 19:05:47下载
    积分:1
  • jimi_leftright
    几米的向左走向右走(meters to the left and right away)
    2005-02-20 16:26:43下载
    积分:1
  • QR_CodeScan_Baoji
    手机中利用二维码进行定位.(标记部分) 程序包括两个部分,这部分为标记部分,需两部分配合使用(Project Name:QR_CodeScan_Baoji Description:Mobile phone use qr code to locate (tag))
    2016-04-02 23:10:30下载
    积分:1
  • Tab
    Class for maintaining Tabs with a main WebView and a subwindow.
    2013-12-06 12:03:48下载
    积分:1
  • Myframe
    五子棋 Java版,带规则 .java文件,可直接查看,已经测试(Java version of backgammon with the rules. Java files, you can directly view, has been tested)
    2011-11-24 20:22:02下载
    积分:1
  • IccConstants
    List of Phone-specific settings screens.
    2013-12-02 15:03:45下载
    积分:1
  • netbeans
    netbeans权威指南代码,对每个功能点都用例子来演示(netbeans authoritative guide to code for each feature point are examples to demonstrate)
    2009-07-09 10:42:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载