标签:gen method ted private col dex generate 正则表达 去掉
1 private static String strs(String str) { 2 if (str.indexOf(".") > 0) { 3 str = str.replaceAll("0+?$", "");//删掉尾数为0的字符 4 str = str.replaceAll("[.]$", "");//结尾如果是小数点,则去掉 5 } 6 return str; 7 // TODO Auto-generated method stub 8 }
标签:gen method ted private col dex generate 正则表达 去掉
原文地址:https://www.cnblogs.com/mengweihong/p/11305183.html