builder = new StringBuilder("string");

        builder.setLength(15); // 最长 15 字符

        this.name = builder.toString();

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-24
  • 2022-12-23
  • 2021-06-23
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
相关资源
相似解决方案