Lesson
1 / 4Creating arrays
Arrays hold multiple values of the same type. Size is fixed once created.
Main.java
// Declare with values
int[] numbers = {1, 2, 3, 4, 5};
// Declare with size
String[] names = new String[3];
names[0] = "Alice";📦📦📦
A row of boxes, all the same type