2015-09-07 11:44:36 -06:00
|
|
|
// exceptions/MainException.java
|
2015-06-15 17:47:35 -07:00
|
|
|
import java.io.*;
|
|
|
|
|
|
|
|
public class MainException {
|
|
|
|
// Pass all exceptions to the console:
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
|
// Open the file:
|
|
|
|
FileInputStream file =
|
|
|
|
new FileInputStream("MainException.java");
|
|
|
|
// Use the file ...
|
|
|
|
// Close the file:
|
|
|
|
file.close();
|
|
|
|
}
|
2015-09-07 11:44:36 -06:00
|
|
|
}
|
|
|
|
/* Output: (None) */
|