Drenriza
August 27th, 2012, 01:12 PM
Hey guys.
I have a program where i query a MS-SQL database and returns a result set with about 150 entries, in 12 cells.
My question is, how can i format the returning result in a table format in a console program?
See example in picture since the editor cant display as i want it. Thanks.
I have looked at System.out.printf and System.out.format but i cant wrap my head around it ;/ So hoping someone can help me out or point me in the right direction.
Thanks in advance.
Kind regards.
I have a program where i query a MS-SQL database and returns a result set with about 150 entries, in 12 cells.
My question is, how can i format the returning result in a table format in a console program?
See example in picture since the editor cant display as i want it. Thanks.
I have looked at System.out.printf and System.out.format but i cant wrap my head around it ;/ So hoping someone can help me out or point me in the right direction.
Thanks in advance.
Kind regards.