for(int i = 2; i < 9; i++){ System.out.println("10000 at " + i + "%" + " interest = " + String.format("%.2f",calculateInterst(10000,i))); }