重点是正则

        String input = "abcdefghijk";

        String regex = "(.{2})";
        input = input.replaceAll (regex, "$1 ");
        System.out.println (input);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-09-15
  • 2021-07-29
相关资源
相似解决方案