protected static boolean isValidNumber(double d){
  return (!(Double.isNaN(d) || Double.isInfinite(d)));
}

protected static boolean isValidNumber ( double d ) { return ( ! ( Double . isNaN ( d ) || Double . isInfinite ( d ) ) ) ; }
determine whether a number is valid and finite .
