Use:
String.format("It is %d and %<d again!", 10)
On Jan 21, 3:37 am, Farproc <[email protected]> wrote:
> http://d.android.com/reference/java/util/Formatter.html
> In the doc above there is "The two characters <$ immediately following
> the % sign indicate that the previous value should be used again
> instead of moving on to the next value argument".
> I tested it as "String.format("It is %d and %<$ again!", 10)" but it
> throws. Any idea?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en