📜  stringbuilder java setlength - Java 代码示例
📅  最后修改于: 2022-03-11 14:52:26.388000             🧑  作者: Mango
代码示例1
StringBuilder str = new StringBuilder("123456");
// set length equal to 5
str.setLength(5);// str contains "12345"