Can anyone explain this code to me?
class className {
int[] coeffs;
int count(int value) {
int count = 0;
for (int coeff: coeffs)
if (coeff == value)
count++;
return count;
}
}
What I really don't understand is this part:
for (int coeff: coeffs)
What is it mean? Thanks for help.