集合:Collection API 以及List
来源:互联网 发布:mac iphone 蓝牙 网络 编辑:程序博客网 时间:2024/05/21 09:43
集合类:
1.Collection API
*提供了集合和收集的功能
*包含了一系列的接口和类
*主要包含了三大类Collection接口:有两个子接口
List:记录元素的保存顺序,且允许有重复元素
Set:不记录元素的顺序,且不允许有重复元素
Map接口即映射:键值对的集合
2.LIst接口:
*List接口:线性表
主要实现的是ArrayList,LinkList,以及早期的vector
List接口:
public interface List<E> extends Collection<E>{
E get(int index);
E set(int index);
void add (int index,E element);
E remove(int index);
int indexOf(Object O);
....
}
Iterator:迭代器遍历列表
在JDK 1.5以后增强了for语句
for(Element e : List) dosometing(e);
阅读全文
0 0
- 集合:Collection API 以及List
- Collection集合、List集合
- Java中的集合Collection以及对应的子类list类
- 集合collection的实现类List,set以及map
- Collection集合之List
- Collection:List集合
- 集合Collection之List
- 集合之Collection、List
- Collection之List集合
- 集合类,Collection,List
- 集合Collection,list
- 集合(collection API)
- 6、Collection(List集合)
- 集合Collection <List,Set> 枚举
- 黑马程序员---集合-Collection,List
- Collection 集合List 和set2
- 5. Collection 集合List,Set
- 6.1Collection与List集合
- 基于LZO算法的编解码器
- Html5 总结快捷键方式
- B. The Meeting Place Cannot Be Changed(二分)
- 字符串单元节(KMP中NEXT数组剖析)
- 作为私有命名空间的函数
- 集合:Collection API 以及List
- redis服务器相关学习笔记
- MyBatis动态SQL标签用法
- 保存上传图片的流信息
- hdu 1402 A * B Problem Plus FFT模板
- javascript初学记---3 应该是函数加点对象 (附带promise解析)
- 写一个函数实现根据下拉列表的变化,更新图片显示
- x86 汇编 之 指令基础 (AT&T格式 / Linux)
- solr-6 查询中的可扩展插件