Worked example
int[] scores = {55, 72, 88, 91, 60, 45};
int count = 0;
for (int s : scores) {
if (s >= 60 && s <= 89) {
count++;
}
}
System.out.println(count); // 3
The condition s >= 60 && s <= 89 is true for 72, 88, and 60, so the count is 3. Using >= and <= makes both bounds inclusive.