Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Table format

 
Maureen Charlton
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is anyone able to suggest where I look for some example code to enable something to be output to table format?

- I know I'm being a little lazy but I would be happy to copy the number of \t\t's etc?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maureen,
What are you trying to output data to?

Screen? File? Swing? Web page?
 
Maureen Charlton
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Screen.
Just want to copy a load of println's with tabs and | to output something in a table to make it look pretty.

I thought maybe someone had already done this and I could simply copy it. Not a real problem - I have done it now.

Thanks though!
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For future reference - JDK1.5 offers the printf method, where you can specify the format of the output. Many logging implementations too give you ways to format output.
[ November 30, 2004: Message edited by: Paul Sturrock ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic