Re: About to give up



KyoGaSuki <jrockgadaisukidayou@xxxxxxxxxxx> wrote:
PrintWriter out = new PrintWriter("Try2.txt");

Here you created a PrintWriter, but ...

System.out.printf("$%7.2f $%6.2f $%6.2f $
%7.2f",sbal,interest,deposit,ebal);

....here you do *not* use it, but instead the
System's standard-out channel!

Also, printf doesn't write a linefeed by itself.
add %n to the end of the format string to actually
see separate lines.

PS: the answers of the others do also apply.
.