Eleventh records of career

December  6,  2016.

It feels good to be able to start slowly to understand it right now,no longer look like a start to see a face do not  understand.

If one day to meet her again,i will move again?

Now say that the hard work, the future can not see hope, then the road so far, how to do?

现在就说辛苦,对未来看不到希望,那以后的路还那么远那该怎么办??

        NOTES

Collection的常见方法

添、删、判、取

1,添加。 
  boolean add(Object obj): 
  boolean addAll(Collection coll): 
   
2,删除。 
  boolean remove(object obj): 
  boolean removeAll(Collection coll); 
  void clear(); 
   
3,判断: 
  boolean contains(object obj): 
  boolean containsAll(Colllection coll); 
  boolean isEmpty():判断集合中是否有元素。  
 
4,获取: 
  int size(): 
  Iterator iterator():取出元素的方式:迭代器。 


List:特有的常见方法

增、删、改、查

1,添加 
  void add(index,element); 
  void add(index,collection); 
 
 
2,删除; 
  Object remove(index): 
 
 
3,修改: 
  Object set(index,element); 
   
4,获取: 
  Object get(index); 
  int indexOf(object); 
  int lastIndexOf(object); 
  List subList(from,to); 


  This is notes, is also a life, and grow。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值