文件名称: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.