Write a class Fraction and a public class FractionApp. A Fraction has two private final ints, num and den, and is always stored in lowest terms with a positive denominator (2/-4 becomes -1/2). Methods: add, subtract, multiply (each returns a new Fraction), toDouble(), isLessThan(Fraction) and toString() (3/4, or just 2 when the denominator is 1).
main reads four integers a b c d (the fractions a/b and c/d) and prints:
a = 1/2, b = 3/4
a + b = 5/4
a - b = -1/4
a * b = 3/8
a as decimal = 0.5000
smaller: 1/2
Write a private helper gcd for the reduction.