isValidNumber static method

bool isValidNumber(
  1. int number
)
override

Return true if number is valid

Implementation

static bool isValidNumber(int number) {
  return number < 10000 && LicensePlate.isValidNumber(number);
}