Eleventh records of career

来源:互联网 发布:大数据与文化产业 编辑:程序博客网 时间:2024/06/05 00:11

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。

0 0
原创粉丝点击