字符其间添加空格

字符之间添加空格??public class Test {public static void main(String[] args) { System.out.println(1

字符之间添加空格

?

?

public class Test {public static void main(String[] args) { System.out.println("123456789012345".replaceAll("\\d{1}(?!$)", "$0 "));}}

?

输出:

1 2 3 4 5 6 7 8 9 0 1 2 3 4 5