1、原始数组hedate
Object[ ] hedate= new Object[ ]{2019-04, 2019-04, 2019-04, 2019-07, 2019-07, 2019-07, 2019-08, 2019-08, 2019-08, 2019-10, 2019-11, 2019-11, 2019-11, 2019-12, 2019-12, 2019-12}
2、声明一个新的数组xindate用来接收去重后的原始数组hedate
3、循环遍历原始数组hedate,并一次添加到新数组,如果插入的数据与已插入数据重复则不再插入。
4、查询显示新数组内容
显示结果为: