文件名称:TableTest
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- g**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
整数集合是由多个不同的整数构成。请根据下列要求,设计一个集合类。
(1)集合中的元素保存在一个一维数组中。
(2)在类中定义构造方法。在为对象赋初值的同时,保证集合中元素的唯一性。
(3)在类中实现“求两个集合的并集”的功能。
(4)在类中实现“求两个集合的交集”的功能。
(5)在main方法中完成相关测试。
-Integer set is composed of a plurality of different integers.Please according to the following requirements, design a collection class.
(1) the elements in the collection are preserved in a one-dimensional array.
(2) in the definition of the class structure method.In order for the object given initial value at the same time, to ensure the uniqueness of the elements in the collection.
(3) implemented in the class "for the union of the two sets of function".
(4) implemented in the class "and the intersection of the two sets of function".
(5) in the main method completes the related test.
(1)集合中的元素保存在一个一维数组中。
(2)在类中定义构造方法。在为对象赋初值的同时,保证集合中元素的唯一性。
(3)在类中实现“求两个集合的并集”的功能。
(4)在类中实现“求两个集合的交集”的功能。
(5)在main方法中完成相关测试。
-Integer set is composed of a plurality of different integers.Please according to the following requirements, design a collection class.
(1) the elements in the collection are preserved in a one-dimensional array.
(2) in the definition of the class structure method.In order for the object given initial value at the same time, to ensure the uniqueness of the elements in the collection.
(3) implemented in the class "for the union of the two sets of function".
(4) implemented in the class "and the intersection of the two sets of function".
(5) in the main method completes the related test.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TableTest.java