码迷,mamicode.com
首页 > 其他好文 > 详细

collection 接口中的常用方法

时间:2016-05-14 06:31:33      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:

1、int size(); 返回collection 中的元素。

2、boolean is Empty();

3、boolean contains(object obj);

4\boolean contains(collection c);

5、boolean add(object element);

6、boolean addall(collection c);

7、boolean removeAll(object element);

8、boolean removeAll(Collction c);

9、void clear();

10、boolean retainAll(collection c);

11、iterator iterato();

12、object[]toArray();

 

collection 接口中的常用方法

标签:

原文地址:http://www.cnblogs.com/wzhiq896/p/5491734.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!