1-1-10-17 简单问题,检查错误!
发信人: myzdf (myzdf), 信区: Java标题: Re: 简单问题,检查错误!
发信站: BBS 水木清华站 (Thu Aug8 11:16:52 2002)
System.in.read() must be in try{} block.
like that:
try
{
a = (char) System.in.read();
}catch(IOException e)
{
e.printStackTrace(System.out);
}
【 在 knightcq (笑望天) 的大作中提到: 】
: char a;
: a = (char)System.in.read();
: 这个语句哪里有错啊?一直编译都提示有错!
页:
[1]