Java program to compute the amortization schedule