Please enable JavaScript to use CodeHS

CodeHS Glossary


Counter Java

A variable used to count the number of times an action has been performed. For example, to count how many times a loop has executed, we use a counter variable i: ``` for(int i = 0; i < 10; i++) { ```