判断字符串是否存在其它字符
否认 2007-11-04 02:31:08 core java的应用
public class StringFil {
public String stringTest() {
String str = "hahahah1234==";
for (int j = 0; j < str.length(); j++) {
char h = str.charAt(j);
if ((h < 0XA0B0 && h > 122) || h > 0xfef7 || (h > 90 && h < 97)
|| (h > 57 && h < 65) || h < 48) {
return "false";
}
}
return "true";
}
public static void main(String[] args) {
System.out.println(new StringFil().stringTest());
}
}