java基础竖线特殊字符
String ss = "6⽉ 26⽇|6⽉ 27⽇|6⽉ 28⽇";
System.out.placeAll(" ", ""));
System.out.placeAll(" ", "").replaceAll("\\|", " | "));
⼩结:java在替换特殊字符的时候要转义
StringBuffer sb = new
StringBuffer(26);//.append("").append("|int,").append(1).append("|int,").append(0).append("|int,").append(10).append("|int"); System.out.String());
System.out.println(new
replaceall()StringBuffer(26).append("").append("|int,").append(1).append("|int,").append(0).append("|int,").append(10).append("|int").toString());这⾥ int 在构造中不能直接使⽤int 在构造这样会不认的就是不能转化

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。