把字符转成字符串,
String strD = new String("d");
if(strD.compareTo("a")>0 and strD.compareTo("z")<0)
  System.out.println("字符在a~z之间");