class ArgChecker {

  public static double notZero(double argument, String name) {
    if (argument == 0d || argument == -0d) {
      throw new IllegalArgumentException("Argument '" + name + "' must not be zero");
    }
    return argument;
  }

  private  ArgChecker();

}