isValidRegion static method

bool isValidRegion(
  1. int region
)

Return true if region is valid

Implementation

static bool isValidRegion(int region) {
  return region > 0 && region < 1000;
}