add method

void add(
  1. int amount
)

Adds the specified amount to the current value.

Implementation

void add(int amount) {
  value += amount;
}