• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to convert the console output of java into HTML with proper design  RSS feed

 
Sucheta Shrivastava
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a Shopping cart app, it is a program that comes under OOAD(Object Oriented Design and Analysis) that has product, lineitems, order and customer classes. I want to transfer the contents of the last class customer to HTML file.i have made an attempt but it is not proper with indentations . How to create one ?


 
Tim Moores
Saloon Keeper
Posts: 4024
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"<\n>" is not a valid HTML element - if you want to add a line break, "<br>" is the right element (or "<p>" for extra vertical space).

"\t" will also be ignored - HTML treats any sequence of white space characters as a single space.

Assuming that you're unfamiliar with CSS, the easiest way to line up stuff in columns would be to use an HTML table.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!