Array Declaration

Array Declaration

Array Declaration — specifying the type of its elements followed by square brackets.

int[] numbers;
numbers = new int[5];

This creates an array capable of holding 5 integer values, all of which are initialized to 0 by default.

Related concepts

Array Declaration

Array Declaration — Structure map

Clickable & Draggable!

Array Declaration — Related pages: