String string = “8085/”;
String newString = string.replaceAll(“////”,””);//newString =8085
注意:方法是replaceAll(),//// 是去除 /
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/17676.html
String string = “8085/”;
String newString = string.replaceAll(“////”,””);//newString =8085
注意:方法是replaceAll(),//// 是去除 /
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/17676.html