Java Fraction Calculator Example