is that any good ideas to fixed the aligment of the output instead of using \t, due to some of the output words have more or less. :)
gahhon
13
Junior Poster
Recommended Answers
Jump to PostYou can use the felxible printf method of PrintStream. You can use System.out to access it.
And you can specify exactly the number of columns each word must occupy using the C style format specifiers.
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.