Arrays are not like lists. they To declare an array, you can give it a length, or have it allocated by itself.

Known size

datatype[] listname = new datatype[#ofindexes];

Unknown size

datatype[] listname = {value1, value2, value3};

Reading array

listname[index] from 0 to the total size of array.