这段代码为什么不是输出字符对应的数字,而是输出字符?
代码如下:
public class Test {
public static void main(String[] args)
{
try
{
int c;
while((c = System.in.read())!=-1)
{
System.out.write(c);
}
}
catch (Exception e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}