char ch='a';

System.out.println(ch+1);//这里会输出一个int类型的数

s.charAt(i) - 'a'//是int类型