Array Length

Array Length

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.

Related concepts

Array Length

Array Length — Structure map

Clickable & Draggable!

Array Length — Related pages: