摘要:
public static String rightTrim(String str) { String regex = "(.*\\S+)(\\s+$)"; Pattern p = Pattern.compile(regex); Matcher m = p.matcher(str); if (m.matches()) { str = m.group(1); } return str;} 阅读全文
posted @ 2013-07-17 11:36
李小加
阅读(1332)
评论(0)
推荐(0)

浙公网安备 33010602011771号