• Post Reply Bookmark Topic Watch Topic
  • New Topic

Formatted output  RSS feed

 
S Roberts
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i get not well formatted output of this:



how must i change it to get normally columns output without this unformatted output:

 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't name your classes F and your variables z. Use more descriptive names.
Implement the toString method in your F class (which you should rename) to make it display the way you want.
 
S Roberts
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i did this, public String toString() { return M+Lp+S+R} but get the same thing, with "\t" between them too
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is "normal columns output" and in what way is the output you posted "unformatted"? It looks formatted to me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!