import com.imsl.finance.*; import java.text.NumberFormat; public class pmtEx1 { public static void main(String args[]) { double rate = .08; int nper = 25; double pv = 100000.00; double fv = 0.0; int when = Finance.AT_END_OF_PERIOD; double pmt = Finance.pmt(rate, nper, pv, fv, when); System.out.println("The payment due each year on the $100,000 loan is " + NumberFormat.getCurrencyInstance().format(pmt)); } }