void validateNumber(int i,int ofs,String name,int min,int max) throws ParseException {
  if (i < min || i > max) {
    throwInvalid(name,ofs);
  }
}

void validateNumber ( int i , int ofs , String name , int min , int max ) throws ParseException { if ( i < min || i > max ) { throwInvalid ( name , ofs ) ; } }
utility method to validate a number is within given range .
