Bookmark Topic Watch Topic
  • New Topic

Formating issues  RSS feed

 
Clayton Blankinship
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Report post to moderator
So this program runs with this data file, I am just wondering if there is anyone that can help me format the output so that it looks clean?

The first three columns are good, but the last does not line up properly. Also any suggestions or pointers on the coding would be much appreciated.

Here is the data if you want to give it a try:

1000 1 1200
1001 2 800
1002 3 300
1003 6 1100
1004 2 -100
1005 3 783
1006 1 1550
1007 5 950
1008 1 750
1009 2 1050
1010 2 600
1011 4 700
1012 3 1200
1013 3 0
0 0 0

Main.java


readflie.java

 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!