Amortization schedule program in Java