You can declare an array like this: dataType[] myArray;
The array must be explicitly allocated with the new operator:
myArray = new dataType[numberOfElements];
The number inside the brackets is size of the array. Once you create the array, you cannot update the size of the array later on. You can initialize elements of an array in several different ways.
Please Subscribe for more Java tutorial videos coming soon
Nesta página do site você pode assistir ao vídeo on-line Creating an Array in Java - How to Declare and Initialize Arrays Easy Tutorial - Appficial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Appficial 29 Novembro 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 10,155 vezes e gostou 107 espectadores. Boa visualização!