为什么我在以下程序中得到 java.io.FileNotFoundException?
import java.io.*;
class FisDemo {
public static void main(String[] args)throws IOException{
FileInputStream fis=new FileInputStream("abc.txt");
/* Here we are accessing file abc.txt statically. i.e abc.txt must exist in current class directory */
int data;
while(( data=fis.read())!=-1){
System.out.println((char)data);
// here we are casting, because return type of read() is int
}
}
}