Re: How can I write right-justified into a 12 chars width field?



Lord Zoltar wrote:
On Apr 29, 2:23 pm, grem...@xxxxxxxxxxx (Catherina Svensson) wrote:

How can I implement this right-justified, blank padded, fixed-width filed output in Java?

Cat

Write a string padding function. Java doesn't have one, so you'd have

*coughFormattercough*

<http://java.sun.com/javase/6/docs/api/java/util/Formatter.html>
.