Ï ----jGRASP exec: javac A:\ReadFromFile_1



Ï ----jGRASP exec: javac A:\ReadFromFile_1.java

ÏϧÏ

ϼ§ÏReadFromFile_1.java:35: unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown

ÏϧÏ__fileScan = new Scanner (new File (filename));

ÏÏ§Ï ^

ÏϧÏ1 error

ÏϧÏ

ÏÏ§Ï ----jGRASP wedge2: exit code for process is 1.

ÏÏ©Ï ----jGRASP: operation complete.

Ï

ÏÏ«Ï ----jGRASP exec: java ReadFromFile_1a

ÏϧÏ

ÏÏ§Ï Please enter the name of the file you want to read from

¼¼§Ï with complete path a:\numbers.txt

ÏÏ§Ï got number 23

ÏÏ§Ï got number 45

ÏÏ§Ï got number 1236

ÏÏ§Ï got number 32

ÏÏ§Ï got number 56

ÏÏ§Ï got number 98

ÏÏ§Ï read 6 numbers from file - am now done

ÏϧÏ

ÏÏ©Ï ----jGRASP: operation complete.

¼¼

ÏÏ

ÏÏ«Ï ----jGRASP exec: java ReadFromFile_1a

ÏϧÏ

ÏÏ§Ï Please enter the name of the file you want to read from

¼¼§Ï with complete path a:\num.txt

ÏϧÏException in thread "main" java.io.FileNotFoundException: a:\num.txt (The system cannot find the file specified)

ÏϧÏ_at java.io.FileInputStream.open(Native Method)

ÏϧÏ_at java.io.FileInputStream.(Unknown Source)

ÏϧÏ_at java.util.Scanner.(Unknown Source)

ÏϧÏ_at ReadFromFile_1a.main(ReadFromFile_1a.java:35)

ÏϧÏ

ÏÏ§Ï ----jGRASP wedge2: exit code for process is 1.

ÏÏ©Ï ----jGRASP: operation complete.

¼¼ÏÏÏÏ

ÏÏ

ÏÏ«Ï ----jGRASP exec: javac A:\ReadFromFile_1b.java

ÏϧÏ

ϼ§ÏReadFromFile_1b.java:46: variable fileScan might not have been initialized

ÏÏ§Ï while (fileScan.hasNext())

ÏÏ§Ï ^

ÏϧÏ1 error

ÏϧÏ

ÏÏ§Ï ----jGRASP wedge2: exit code for process is 1.

ÏÏ©Ï ----jGRASP: operation complete.

ÏÏ

ÏÏ«Ï ----jGRASP exec: javac A:\ReadFromFile_1c.java

ÏϧÏ

ϼ§ÏReadFromFile_1c.java:49: variable fileScan might not have been initialized

ÏÏ§Ï while ( (fileFound) && (fileScan.hasNext()))

ÏÏ§Ï ^

ÏϧÏ1 error

ÏϧÏ

ÏÏ§Ï ----jGRASP wedge2: exit code for process is 1.

ÏÏ©Ï ----jGRASP: operation complete.

Ï «Ï ----jGRASP exec: javac A:\ReadFromFile_1d.java

ÏϧÏ

ÏϧÏ

ÏÏ©Ï ----jGRASP: operation complete.

Ï«Ï ----jGRASP exec: java ReadFromFile_1d

ÏϧÏ

ÏÏ§Ï Please enter the name of the file you want to read from

¼¼§Ï with complete path a:\num.txt

ÏÏ§Ï The file you named was not found

ÏϧÏException in thread "main" java.io.FileNotFoundException: errors.txt (The system cannot find the file specified)

ÏϧÏ_at java.io.FileInputStream.open(Native Method)

ÏϧÏ_at java.io.FileInputStream.(Unknown Source)

ÏϧÏ_at java.util.Scanner.(Unknown Source)

ÏϧÏ_at ReadFromFile_1d.main(ReadFromFile_1d.java:45)

ÏϧÏ

ÏÏ§Ï ----jGRASP wedge2: exit code for process is 1.

ÏÏ©Ï ----jGRASP: operation complete.

¼¼ÏÏ

«Ï ----jGRASP exec: java ReadFromFile_1d

ÏϧÏ

ÏÏ§Ï Please enter the name of the file you want to read from

¼¼§Ï with complete path a:\num.txt

ÏÏ§Ï The file you named was not found

ÏÏ§Ï read 0 numbers from file - am now done

ÏϧÏ

ÏÏ©Ï ----jGRASP: operation complete.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download