Java · Variables and primitive types

Updating and swapping

Scores, counters and totals change as a program runs, and each change is one assignment that replaces the old value.