• Post Reply Bookmark Topic Watch Topic
  • New Topic

Fixed width text output  RSS feed

 
Ernie Mcracken
Ranch Hand
Posts: 33
Mac Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there an elegant (i.e. one that doesn't use looping) way to set the width of an OutputStream so that it will print a fixed number of characters per line??

Cheers

Ern
 
fred rosenberger
lowercase baba
Bartender
Posts: 12563
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without more info, it is hard to say, but the extended by java.util.Formatter class might do what you need.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!