Java · Loops

Counters and accumulators

Most loops exist to build up one answer, a count or a total, and where that variable starts decides whether the answer is right.