Why wont this work ????


import java.util.*;
import java.io.*;
public class Fraction
{
static Scanner console = new Scanner(System.in);

public static void main(String[] args)
{
Fraction num1 = new Fraction(2,10);
Fraction num2 = new Fraction(15,5);
Fraction num3 = new Fraction(24,18);

System.out.println(" " + num1);
System.out.println(" " + num2);

num3 = num1.add(num2);

System.out.println(" " + num3);
System.out.println("Addition = " + num1 + " + " + num2
+ " = " + num1.add(num2));
System.out.println("Multiplication = " + num1 + " * " + num2
+ " = " + num1.multiply(num2));

num3 = num1.subtract(num2);


System.out.println("Subtraction = " + num1 + " - " + num2
+ " = " + num1.subtract(num2));
System.out.println("Division = (" + num1 + ") / (" + num2
+ ") = " + num1.divide(num2));
}
}