六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 33|回复: 0

removeAll方法原来是这样的

[复制链接]

升级  56%

6

主题

6

主题

6

主题

童生

Rank: 1

积分
28
 楼主| 发表于 2013-2-4 20:22:36 | 显示全部楼层 |阅读模式
 
 
booleanremoveAll(Collection<?> c)
          Removes all of this collection's elements that are also contained in the specified collection (optional operation).
 
 
 
to mysurprise ,the removeAll method has a arguement,its function is to remove all of its elements that are also contained in the specified collection. this method is defined in the interface Collection. Both  Interface Set and Interface  List are subinterfaces of Collection.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表