A Java program that calculates the interest on a loan.