16 lines
418 B
Java
16 lines
418 B
Java
|
//: exceptions/MainException.java
|
|||
|
// <20>2015 MindView LLC: see Copyright.txt
|
|||
|
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();
|
|||
|
}
|
|||
|
} /* Output: (None) *///:~
|