【发布时间】:2012-10-02 12:08:06
【问题描述】:
我不明白为什么这段代码是错误的,我错过了什么???
try{
input = inputFile.readLine();
}
finally{
inputFile.close();
}
catch (IOException e){
System.out.println("I/O error: " + e.getMessage());
}
【问题讨论】:
-
终于追上了。
-
把catch放在finally之前
-
他们说了什么,还有:请描述您在发布问题时遇到的问题。
-
我认为现在是时候花些时间阅读书籍或文档,而不仅仅是输入内容和发帖寻求帮助
-
无论你在读什么书,如果你进一步阅读,它总是会解释这个概念,然后在这里发表你的疑问。