Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

import java.io.

FileNotFoundException;
import java.io.IOException;
import java.text.ParseException;

public class Application {

public static void main(String[] args) {

MultipleExceptions me = new MultipleExceptions();

// try {
// me.start();
// } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// } catch (ParseException e) {
// System.out.println("Incorrect format");
// }

// try {
// me.start();
// } catch (IOException | ParseException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }

try {
me.start();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

try {
me.example();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

You might also like