I have an integer array crr_array and I want to count elements, which occur repeatedly. First, I read the size of the array and initialize it with numbers read
crr_array
for (int i = 0; i < x.length; i++) { for (int j = i + 1; j < x.length; j++) { if (x[i] == x[j]) { y[i] = x[i]; times[i]++; } } }