Skip to content · ⁨Saltar al contenido⁩

ArrayList: a list that grows · ⁨ArrayList: una lista que crece⁩

English

A list that can grow

  • An array has a fixed size. Once you make it, the length cannot change.
  • An ArrayList is a list that can grow and shrink while the program runs.
  • You must import it at the top of the file: import java.util.ArrayList;.
Español

Una lista que puede crecer

  • Un array tiene un tamaño fijo. Una vez creado, su longitud no puede cambiar.
  • Un ArrayList es una lista que puede crecer y encogerse mientras el programa se ejecuta.
  • Debes importarlo en la parte superior del archivo: import java.util.ArrayList;.

Handout · ⁨Material⁩

Log in or create account · ⁨Iniciar sesión o crear cuenta⁩

IGCSE, A-Level & AP