A
string replace(char old,char new)
string replace(string old,string new)
B
string 的去除字符串空格
string trim()
C
string的按字典顺序比较两个字符串
int compareTo(string str) 相同字符串长度时 比较首字母 ;不同字符长度时 就比较长度;如果是中文,比较unicode码表值
int compareToIgnoreCase(String str)
原文:http://www.cnblogs.com/yimian/p/6483596.html