Driver Code
public static void main ( String [ ] args ) { int num1 = 1 , den1 = 500 , num2 = 2 , den2 = 1500 ; addFraction ( num1 , den1 , num2 , den2 ) ; System . out . printf ( "%d/%d + %d/%d is equal to %d/%dNEW_LINE", num1, den1, num2, den2, num3, den3); } }