StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append(name+"%+23s");
}
这个逻辑正确吗?
拉丁的传说
浏览 125回答 3
3回答
拉风的咖菲猫
你可以使用setLengthStringBuilder stringBuilder = new StringBuilder();....if (stringBuilder.length () > 22){ stringBuilder.setLength(22); stringBuilder.append(" ");// append number of space characters here}