摘要:
JAVA中去掉空格 1. String.trim() trim()是去掉首尾空格 2.str.replace(" ", ""); 去掉所有空格,包括首尾、中间 String str = " hell o "; String str2 = str.replaceAll(" ", ""); System.out.println(str2); 3.或者replaceAll("... 阅读全文
posted @ 2015-12-01 00:03
xxxxxxxx1x2xxxxxxx
阅读(2030)
评论(0)
推荐(1)
浙公网安备 33010602011771号