if (numerator==Integer.MIN_VALUE || denominator==Integer.MIN_VALUE) { throw new ArithmeticException("overflow: can't negate"); }
    public static Fraction getFraction(int numerator, int denominator) {        if (denominator == 0) {            throw new ArithmeticException("The denominator must not be zero");        }        if (denominator < 0) {            numerator = -numerator;            denominator = -denominator;        }        return new Fraction(numerator, denominator);    }