Computer Science Lecture Notes, Chapter 4

System.out.printf("In fact, the investment is worth $%,9.2f " +" at the end of the %2d years\n", currentBalance, years);}} don’t use a semicolon after the header when you want the loop to iterate the statement after the header. don’t use != to test the end of a range; use ................
................