- public class Test6 {
- public static void main(String[] args) throws Exception {
- // TODO Auto-generated method stub
-
- MyLineReader myReader = new MyLineReader(new FileReader("Test1.java"));
- String s = null;
- while((s = myReader.readLine()) != null){
- System.out.println(s);
- }
- }
- }
复制代码
Test6.java和Test1.java在同相同路径下,但是为什么还是出现FileNotFoundException异常? |
|