把字符转成字符串,
String strD = new String("d");
if(strD.compareTo("a")>0 and strD.compareTo("z")<0)
System.out.println("字符在a~z之间");
String strD = new String("d");
if(strD.compareTo("a")>0 and strD.compareTo("z")<0)
System.out.println("字符在a~z之间");
string b="a"; //需要查找的字符
b=b.toLowerCase();
int i=s.indexOf(b);
if (i<0){}//不在字母表中
else//在字母表中
如果不行,强制转成int也就可以了