Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to achieve all the print statements in alignment (using eclipse)

800601Feb 25 2009 — edited Feb 26 2009
Hi

Any one pls tell me , how can i align print statements


I tried many ways , but the output doesnot come properly.
I am using eclipse
System.out.println("Number of records read from aaa                 "+CountQueryA);	
System.out.println("Number of records read from bbb                 "+CountQueryB);
System.out.println("Number of records read from ccc                 "+CountQueryC);
				
my output comes like this

Number of records read from aaa 123
Number of records read from bbb 456
Number of records read from ccc 345


i want my output to be aligned , with all numbers one under the other , but its not happening

anyone help me ..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2009
Added on Feb 25 2009
6 comments
94 views