Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public static void main(String[] args) {
  2. File file1 = new File("input.txt");
  3. try {
  4. Scanner scan = new Scanner(file1);
  5. } catch (FileNotFoundException e) {
  6. e.printStackTrace();
  7. }
  8. }
  9.  
  10. java.io.FileNotFoundException: input.txt (The system cannot find the file specified)
  11. at java.io.FileInputStream.open(Native Method)
  12. at java.io.FileInputStream.<init>(Unknown Source)
  13. at java.util.Scanner.<init>(Unknown Source)
  14. at A.main(A.java:12)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement