Check out example codes for "java tamanho de um vetor". It will help you in understanding the concepts better.

Code Example 1

int tamanho;       
int[] array1 = {10, 11, 12, 13, 14, 15, 16, 17, 18, 19};

tamanho = array1.length;

System.out.printf("Tamanho do array1: %d", tamanho);

Learn ReactJs, React Native from akashmittal.com