Collection-List/ArrayList/LinkedList/Vector

原创 2015年07月09日 00:15:30

List is an ordered collection. The user of this interface has precise control over where in the list each element is inserted.. The user can access the element by their integer index, and search for elements in the list. Also, unlike sets, list typically allows duplicated elements.

Array List is re sizable-array implementation of the List interface. Implements all optional list operations, and permits all elements, including null. In addition to implementing the list interface, this class can provides methods to manipulate the size of the array that is used internally to store the list. (This class is roughly equivalent to Vector, except that it is synchronized).

Note that this implementation is not synchronized. If multiple threads access an Array List instance concurrently, and at least one of the threads modifies the list structurally. It must be synchronized externally.


Linked List is a doubly-linked list implementation of List and Deque interface. Implements all optional list operations, and permit all elements,including nulls.

Note that this implementation is not synchronized. If multiple threads access an Array List instance concurrently, and at least one of the threads modifies the list structurally. It must be synchronized externally.


Vector is just like Array List, except that Vector is thread safe.


相关文章推荐

day14集合(collection)中的List(分三部分ArrayList,LinkedList,Vector)

import java.util.*; /* 1、add方法的参数类型是object,以便于接受任意类型对象。 2、集合中存储的都是对象的引用(地址)。 */ class CollectionDe...

集合(二):Collection,List,ArrayList,LinkedList,Vector

Collection,List,ArrayList,LinkedList,Vector 简介

Collection,List,ArrayList,Vector,LinkedList(实现方式,对比)

Collection List Collection 是 Java 集合的一个根接口,JDK 没有它的实现类。 内部仅仅做 add(),remove(),contains(),size() ...

java中Collection/Collections;List/Set/Map;ArrayList/Vector/LinkedList;HashSet/HashMap/TreeSet/TreeMap

整理一些有关java中 Collection/Collections; List/Set/Map; ArrayList/Vector/LinkedList; HashSet/HashMap/T...

Java 集合:Collection,List,ArrayList,Vector,LinkedList(实现方式,对比)

原址https://github.com/pzxwhc/MineKnowContainer/issues/18 _Collection 是 Java 集合的一个根接口,JDK 没有它的实现类。_...

集合一:Collection、Iterator、List、ArrayList、Vector、LinkedList

-------android培训、Java培训、期待与您交流!------- 1  集合 1.1  集合概述     集合是用来存储对象,并对多个对象进行操作的容器。     集合和数组都可以存...

集合Collection中ArrayList、LinkedList、Vector的用法详解

Collection ├List │├LinkedList │├ArrayList │└Vector │ └Stack └Set

collection接口之Arraylist,vector,Linkedlist

ArrayList 和Vector是采用数组方式存储数据,此数组元素数大于实际存储的数据以便增加和插入元素,都允许直接序号索引元素,但是插入数据要设计到数组元素移动等内存操作,所以索引数据快插入数据慢...

(黑马程序员)学习笔记,Collection集合(ArrayList、LinkedList、Vector、HashSet、TreeSet)

这类集合都实现了Collection接口,因此也j
  • jzxyhjl
  • jzxyhjl
  • 2014年04月29日 14:06
  • 333

JAVA学习.JAVA集合类型Collection.List.ArrayList&LinkedList

以下是一张比较简单的介绍图,在具体代码分析之前先大概的了解以下要介绍的内容。 /** * */ package CollectionDemo.ListDemo; import java.u...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Collection-List/ArrayList/LinkedList/Vector
举报原因:
原因补充:

(最多只允许输入30个字)