ArrayLists
8 min · Java
Java's resizable lists — add, remove, and reach items by index.
Java · ArrayLists0/5 cleared
Enemy 1 of 5
An ArrayList holds many values in order. Import java.util.ArrayList, then new ArrayList<>() creates an empty one.
`.add()` appends to the end. `.get(index)` reads a position (counting from 0).
You
Goblin Glitch
Loading editor...
Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: apple