m******t 发帖数: 2416 | 1
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); |
|