Skip to content · ⁨Pular para o conteúdo⁩

ArrayList: a list that grows · ⁨ArrayList: uma lista que cresce⁩

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;.
Português

Uma lista que pode crescer

  • Um array tem tamanho fixo. Uma vez criado, o length não pode mudar.
  • Um ArrayList é uma lista que pode crescer e encolher enquanto o programa roda.
  • Você deve importá-lo no topo do arquivo: import java.util.ArrayList;.

Handout · ⁨Material de apoio⁩

Log in or create account · ⁨Entrar ou criar conta⁩

IGCSE, A-Level & AP