由买买提看人间百态

topics

全部话题 - 话题: u0020
(共0页)
m******t
发帖数: 2416
1
来自主题: Java版 - a simple question

Hmmm, why not something that actually justifies our salary? /grin...
StringBuilder sb = new StringBuilder("\u0020");
for (int i = 0; i < 3; i++) {
sb.append(sb.toString());
}
String rawString = sb.toString();
String truncatedString = rawString.substring(0, (int)Math.pow(2, 3) - 3);
String resultString = truncatedString.replace('\u0020', '\u0030');
System.out.println(resultString);
t******c
发帖数: 348
2
来自主题: Java版 - a simple question
靠StringBuilder是j2se1.5刚出来的,不适合多线程。
请问搞些\u0020 \u0030 换来换去 有什么意义?
(共0页)