字符之间添加空格
?
public class Test {public static void main(String[] args) { System.out.println("123456789012345".replaceAll("\\d{1}(?!$)", "$0 "));}}
输出: