文件名称:TableTest
介绍说明--下载内容来自于网络,使用问题请自行百度
整数集合是由多个不同的整数构成。请根据下列要求,设计一个集合类。
(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
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。