Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

filewriter: how to write a empty line or go next line

807588Sep 1 2007 — edited Mar 11 2009
example:
w <--i declare as filewriter
w.write("Name = " + cust.name);
<how to i make it write to new line>?
w.write("Account Balance = " + cust[i].balance);

my current output in the file is the following:
Name = AlexAccount Balance = 56581

i wanted it to be like this in the output file:
Name = Alex
Account Balance = 56581

how to write to new line? thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 8 2009
Added on Sep 1 2007
7 comments
418 views