Array Length — refers to the number of elements it contains.
int[] numbers = {1, 2, 3, 4, 5}; int length = numbers.length; System.out.println("Array length: " + length); // Outputs: 5
The length can be obtained using the length property.
Clickable & Draggable!