public static boolean isVeryDangerous(double d){
  return Double.isInfinite(d) || Double.isNaN(d);
}

public static boolean isVeryDangerous ( double d ) { return Double . isInfinite ( d ) || Double . isNaN ( d ) ; }
returns true if the argument is a " very dangerous " double to have around , namely one that is infinite or nan .
