阅读背景:

理解Java格式字符串中的$

来源:互联网 
 StringBuilder sb = new StringBuilder();
 // Send all output to the Appendable object sb
 Formatter formatter = new Formatter(sb, Locale.US);

 // Explicit argument indices may be used to re-order output.
 formatter.format("%4s %3s %2s %1s", "a", "b", "c", "d")
 // -> " d  c  b  a"
 StringBuilder sb = new StringBuilder();
 // Se



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: