+1 看read方法的说明: The character read, as an integer in the range 0 to 65535 (0x00-0xffff), or -1 if the end of the stream has been reached 返回的是它读到的一个字符,你这里也就是1,1对应的ascii码值就是49. [其他解释]
哪怎么修改呢? [其他解释] 我一般都用Scanner类 Scanner sc=new Scanner(System.in); int c=sc.nextInt(); System.out.print(c); 当然还有别的方法,可以自己查一下API