# Loop Counter

A numeric variable used to track loop repetitions or positions.

## What is **Loop Counter** in Java?

**Loop Counter** — A numeric variable used to track loop repetitions or positions.

```java
class Schedule {
    void markThreeDays(boolean[] scheduled) {
        for (int day = 0; day < 3; day++) {
            scheduled[day] = true;
        }
    }
}
```

Level: Apprentice · [More Java terms at this level](https://www.ask-codey.com/glossary/subjects/java/apprentice)

Updated: September 27, 2026

## In other subjects

- [Loop Counter in C#](https://www.ask-codey.com/glossary/loop-counter-c-sharp)

Source: https://www.ask-codey.com/glossary/loop-counter
