Collection List Set Map Collections 集合方法总结

集合:

 

 

 

Collection

 

 

             Iterators()     返回一个对象。对象方法有

                    .next();返回下一个元素 

                    .hasNext() ; 如果后面有元素返回trun

 

List

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Set

 

 

 

 

 

 

 

Map

 

 

 

 

 

 

 

Collections

posted @ 2020-03-22 10:26  mengjiabei  阅读(218)  评论(0)    收藏  举报