String x = "20161111";System.out.println(x.replaceAll("(d{4})(d{2})(d{2})", "$1-$2-$3"));
java怎么把20161011转化为2016?
曾月尔
开发者_JAVA技巧
12小时前
String x = \"20161111\";System.out.println(x.replaceAll(\"(d{4})(d{2})(d{2})\", \"$1-$2-$3\"));
曾月尔
开发者_JAVA技巧
12小时前
0
0
0
精彩评论