Module java.base
Package java.util

# Class ArrayList

=
public class ArrayList<E>
extends java.util.AbstractList<E>
implements java.io.Serializable, java.lang.Cloneable, java.util.List<E>, java.util.RandomAccess

## Constructors

- =
  public ArrayList()
- =
  public ArrayList(int arg0)
- =
  public ArrayList(java.util.Collection<? extends E> arg0)

## Methods

- =
  public void add(int arg0, E arg1)
- =
  public boolean add(E arg0)
- =
  public boolean addAll(int arg0, java.util.Collection<? extends E> arg1)
- =
  public boolean addAll(java.util.Collection<? extends E> arg0)
- =
  public void addFirst(E arg0)
- =
  public void addLast(E arg0)
- =
  public void clear()
- =
  public java.lang.Object clone()
- =
  public boolean contains(java.lang.Object arg0)
- =
  public void ensureCapacity(int arg0)
- =
  public boolean equals(java.lang.Object arg0)
- =
  public void forEach(java.util.function.Consumer<? super E> arg0)
- =
  public E get(int arg0)
- =
  public E getFirst()
- =
  public E getLast()
- =
  public int hashCode()
- =
  public int indexOf(java.lang.Object arg0)
- =
  public boolean isEmpty()
- =
  public java.util.Iterator<E> iterator()
- =
  public int lastIndexOf(java.lang.Object arg0)
- =
  public java.util.ListIterator<E> listIterator()
- =
  public java.util.ListIterator<E> listIterator(int arg0)
- =
  public E remove(int arg0)
- =
  public boolean remove(java.lang.Object arg0)
- =
  public boolean removeAll(java.util.Collection<?> arg0)
- =
  public E removeFirst()
- =
  public boolean removeIf(java.util.function.Predicate<? super E> arg0)
- =
  public E removeLast()
- =
  protected void removeRange(int arg0, int arg1)
- =
  public void replaceAll(java.util.function.UnaryOperator<E> arg0)
- =
  public boolean retainAll(java.util.Collection<?> arg0)
- =
  public E set(int arg0, E arg1)
- =
  public int size()
- =
  public void sort(java.util.Comparator<? super E> arg0)
- =
  public java.util.Spliterator<E> spliterator()
- =
  public java.util.List<E> subList(int arg0, int arg1)
- =
  public java.lang.Object[] toArray()
- =
  public <T> T[] toArray(T[] arg0)
- =
  public void trimToSize()

## Serialized Form

=

### serialVersionUID

=8683452581122892189

### Serialized Fields

- =
  int size

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.IOException, java.lang.ClassNotFoundException
- =
  private void writeObject(java.io.ObjectOutputStream arg0) throws java.io.IOException

## Summary

No differences.