Skip to content · ⁨Passer au contenu⁩

ArrayList: a list that grows · ⁨ArrayList : une liste qui grandit⁩

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;.
Français

Une liste qui peut grandir

  • Un tableau a une taille fixe. Une fois créé, la longueur ne peut pas changer.
  • Un ArrayList est une liste qui peut grandir et rétrécir pendant l'exécution du programme.
  • Vous devez le importer en haut du fichier : import java.util.ArrayList;.

Handout · ⁨Fiche de cours⁩

Log in or create account · ⁨Se connecter ou créer un compte⁩

IGCSE, A-Level & AP