登录
首页 » Java » java-Exe5_1

java-Exe5_1

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

  • rational
    建立有理数类,实现有理数的四则预算,实现输出分数形式和小数形式。(Establish rational category, the four realize rational budget to achieve the output fractional and decimal form.)
    2014-03-27 03:46:41下载
    积分:1
  • USB
    USB通信原理和实力,简单适用原理和实力,简单适用(usb tongxun yuanli he jieshao )
    2009-12-26 17:24:05下载
    积分:1
  • Homework08
    利用前面提到的SupplyDepot、Transport和CapableOfBeingRefefuelled类/接口,为Air-plane增加一个main()方法,然后为supplyDepot等增加必要的字段、参数和代码,以便CapableOfBeingRefefuelled能够告诉service()方法需要加多少油。同时要确保Depot中的油应相应地减少,而实现CapableOfBeingRefefuelledi的类对象应相应地增加。(Using the upplyDepot, Transport and ApableOfBeingRefefuelled classes/interfaces mentioned above, add a main () method to Air-plane, and then add the necessary fields, parameters and codes to supplyDepot, so that CapableOfBeingRefefuelled can tell service () how much fuel the method needs. At the same time, we should ensure that the oil in Depot should be reduced accordingly, and the class objects that implement Capable OfBeingRefefuelledi should be increased accordingly.)
    2020-12-07 21:59:21下载
    积分:1
  • acr3r3r3r3
    关于java的一些课后作业的相关解释 对于初学者还是有一定程度的帮助 希望大家呢能祈祷帮助(java on the after-school operations related explanation for beginners or to a certain extent, hopefully with the help of Andrew can prayer help?)
    2007-04-23 12:02:13下载
    积分:1
  • MQClient
    MQ客户端向服务器端发送消息。再接收服务器端消息(MQ Client-Server Send and collect Message)
    2021-03-29 19:49:10下载
    积分:1
  • TicTacAction
    Multiplayer Action for TicTactoe game
    2011-10-07 17:48:20下载
    积分:1
  • xp
    这是一个基于静态页面实现数据传输简单小票程序。(Simple Ticket Page)
    2020-06-22 19:20:01下载
    积分:1
  • OrderTickets
    一个用java和jsp以及servlet编写的网上订票系统(Order Tickets)
    2014-03-05 21:49:27下载
    积分:1
  • Door
    门禁系统 适合初学者学习的 控制台java程序 代码简单功能明确(Access control system suitable for beginners to learn a simple function of the console java code explicitly)
    2013-12-26 22:32:07下载
    积分:1
  • tea
    用java语言实现TEA,可以处理任意轮数的TEA,过程清晰,界面简单(Using java language TEA, can handle any number of rounds of TEA, the process is clear, simple interface)
    2013-12-05 22:03:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载