为什么我会收到错误消息: rawData 无法在 finally 块中解析?
在:
public void parseData(String fileName) throws IOException
{
try
{
DataInputStream rawData = new DataInputStream(new FileInputStream(fileName));
/* here I'm gonna do something*/
}
catch (FileNotFoundException e)
{
e.printStackTrace();
}
finally
{
rawData.close();
}
}
谢谢