String strs="012345"; System.out.println(strs.charAt(1)); //输出?我就输出1 if(strs.charAt(1)==1)System.out.println("char equals int"); //但我并不等于1 if(strs.charAt(1)==(1+'0'))System.out.println("char do not equal int"); //我等于49 if(strs.charAt(1)==49)System.out.println("char do not equal int"); //我等于49 System.out.println((char)49); //1