/**
* 获取字符串中的英文
* @param str
* @return
*/
private String getZB(String str){
String result = new String();
char[] c = str.toCharArray();
for(int i= 0;i<c.length;i++){
if(c[i] >=65 && c[i] <= 122){
result=result+c[i];
}
}
return result;
}
获取字符串中的英文字母
最新推荐文章于 2022-10-21 23:12:42 发布