登录
首页 » Java » java-Exe5_1

java-Exe5_1

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

  • Employee
    创建四个类,分别为Employee类、SalariedEmplyee类、HourlyEmployee类和CommissionEmployee类。其中Employee类是其他三个类的父类。Employee类包含姓名和身份证号。除此之外,SalariedEmployee类还应包含每月工资;HourlyEmployee类还应包含每小时工资数和工作时间数;CommissionEmployee还应包含提成比例和销售总额。每个类都应有合适的构造方法、数据成员的设置和读取方法。编写一个应用程序,创建这些类的对象,并输出与对象相关的信息。注意子类有时需调用父类的构造方法和被覆盖的方法,成员变量定义为private,对有些方法实现重载。 (Create four categories, namely the Employee class, SalariedEmplyee class, HourlyEmployee classes and CommissionEmployee classes. Employee class is the parent class where the other three classes. Employee class contains the name and ID number. In addition, SalariedEmployee class also includes a monthly salary HourlyEmployee class should also include the number of hourly wages and the number of working hours CommissionEmployee should also include the proportion and total sales commission. Each class should have the right to set and read the constructor method, data members. Write an application to create objects of these classes, and output information associated with the object. Sometimes need to call attention to a subclass of the parent class constructor and methods are covered, member variables defined as private, to achieve overloading of some methods.)
    2013-11-27 11:43:06下载
    积分:1
  • ipDial
    使用Java做的安卓的一个小案例,实现了IP拨号的功能(A small case using Java do the Android, the realization of the IP dial function)
    2015-01-13 23:20:56下载
    积分:1
  • rmi_Example
    1 example of RMI: - Myserver: Bind address and registry 1 Rmi registry - MyClient: call method from MyServer to execute
    2012-08-08 09:43:09下载
    积分:1
  • MQPMina
    一个ActiveMQ+Mina的小例子,希望研究这块的人有帮助。(A ActiveMQ+Mina small examples, I hope this piece of research to help people.)
    2013-07-13 16:00:29下载
    积分:1
  • jspshujuku
    现在有好多初学jsp的网友经常会问数据库怎么连接啊,怎么老出错啊?所以我集中的在这写篇文章供大家参考,其实这种把数据库逻辑全部放在jsp里未必是好的做法,但是有利于初学者学习,所以我就这样做了,当大家学到一定程度的时候,可以考虑用MVC的模式开发(There are a lot of jsp beginner users often ask how to connect database ah, how old wrong ah? Therefore, I shall concentrate in this write articles for your reference, in fact, all of this logic on the database in jsp is not necessarily good practice, but is conducive to learning for beginners, so I do this, when the U.S. learned to some extent , we can consider the use of MVC pattern of development)
    2007-11-10 14:08:29下载
    积分:1
  • Pianosimulaonprogram
    用于JAVA ME的游戏代码,供大家学习(Game code for JAVA ME, for all to learn)
    2010-08-05 14:32:02下载
    积分:1
  • Memorytest
    游戏记忆测试,给出30个小格子,选择难度,低级难度是连续选出6个相同的图片为完成(Memory test game)
    2009-06-07 18:15:51下载
    积分:1
  • regress-345
    Escaping to the same target from both the try and catch blocks of try..catch..finally should not fail at compile-time.
    2013-12-25 10:47:59下载
    积分:1
  • PropertyChangeSupport
    Property Change Support.
    2013-11-06 14:47:29下载
    积分:1
  • Jukebox
    JukeBox is the part of the task
    2011-12-27 01:05:01下载
    积分:1
  • 696518资源总数
  • 105714会员总数
  • 27今日下载