正在加载图片...
Import java.10.*. public class Try3 public static void main(String args) FileInputStream fis= new FileInputStream("autoexec. bat") System. out. printIn ("I can not found this file! ") D: \myjava>javac Try3 java Try3. java: 6: unreported exception java. io. FileNot FoundException, must be caught or declared to be thrown FilelnputStream fis=new FileInputStream(autoexec. bat"); error D: myjava>import java.io.*; public class Try3 { public static void main (String args[]) { FileInputStream fis = new FileInputStream("autoexec.bat"); System.out.println("I can not found this file!"); } } D:\myjava>javac Try3.java Try3.java:6: unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown FileInputStream fis = new FileInputStream("autoexec.bat"); ^ 1 error D:\myjava>
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有