Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## java.util
Class ArrayList

    java.lang.Object
      java.util.ArrayList

    public class ArrayList

extends Object

An expandable array.

Author:
  Andre Nijholt

Field Summary
`protected int` | `capacityIncrement`
`protected int` | `elementCount`
`protected Object[]` | `elementData`

Constructor Summary
`ArrayList()`
`ArrayList(int initialCapacity)`
`ArrayList(Object[] elements)`

Method Summary
`void` | `add(int index, Object element)`
`void` | `add(Object o)`
`void` | `addAll(int index, Object[] elements)`
`void` | `addAll(Object[] elements)`
`void` | `clear()`
`boolean` | `contains(Object o)`
`Object` | `get(int index)`
`int` | `indexOf(Object o)`
`boolean` | `isEmpty()`
`int` | `lastIndexOf(Object o)`
`Object` | `remove(int index)`
`Object` | `set(int index, Object element)`
`int` | `size()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait`

Field Detail

### elementData

    protected Object[] elementData

### capacityIncrement

    protected int capacityIncrement

### elementCount

    protected int elementCount

Constructor Detail

### ArrayList

    public ArrayList(int initialCapacity)

### ArrayList

    public ArrayList(Object[] elements)

### ArrayList

    public ArrayList()

Method Detail

### add

    public void add(int index,
                    Object element)

### add

    public void add(Object o)

### addAll

    public void addAll(Object[] elements)

### addAll

    public void addAll(int index,
                       Object[] elements)

### clear

    public void clear()

### contains

    public boolean contains(Object o)

### get

    public Object get(int index)

### indexOf

    public int indexOf(Object o)

### lastIndexOf

    public int lastIndexOf(Object o)

### isEmpty

    public boolean isEmpty()

### remove

    public Object remove(int index)

### set

    public Object set(int index,
                      Object element)

### size

    public int size()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD