關于聲明異常的
有一個問題想問一下,在第一句不知道哪錯了
public void readFile() throws IOException(){
FileInputStream file=new FileInputStream("read.txt");
int f;
while((f=file.read())!=-1){
System.out.println((char)f);
f=file.read();
}
有一個問題想問一下,在第一句不知道哪錯了
public void readFile() throws IOException(){
FileInputStream file=new FileInputStream("read.txt");
int f;
while((f=file.read())!=-1){
System.out.println((char)f);
f=file.read();
}
2016-11-03
舉報
2016-11-03
“IOException()”,將后面的括號去掉