Thread
:
formatting String
View Single Post
#
1
(
permalink
)
11-16-2007, 05:00 PM
bugger
Senior Member
Join Date: Nov 2007
Posts: 111
formatting String
I have following code:
Code:
String formatString = "---%1$-10s---"; System.out.format(formatString, "MyName");
Output:
Code:
---MyName ---
I frankly don't know what %1$ means in the above code
I would appreciate if someone can help.
Sponsored Links
bugger
View Public Profile
Send a private message to bugger
Find all posts by bugger