int[] array = new int[100];
int n = 0;
for (int i: array) n++;