Re: About to give up
- From: Andreas Leitgeb <avl@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: 07 Mar 2008 11:05:02 GMT
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.
.
- References:
- About to give up
- From: KyoGaSuki
- About to give up
- Prev by Date: Re: JavaScript calling java methods
- Next by Date: broad casting msg to snmp srvices
- Previous by thread: Re: About to give up
- Next by thread: Re: About to give up
- Index(es):