nassignment: a statement that instructs the processor
to compute a value and to store it in a
variable.
nIt is denoted by ‘=‘. Note: The ‘=‘ sign does not mean mathematical equality.
nSyntax:variableName = expression
npublic void reset() {
n tally
= 0;
n}
npublic void stepCount () {
n tally
= tally + 1;
n}