// Enter and Leave a Try Statement with a Termination Handler

class NotRaisedException extends Exception {}

public class CrossCatch {
	public static void main(String[] args) {
		int times = 1;
		boolean shouldThrow = false;
		if (0 < args.length) {
			times = Integer.parseInt(args[0]);
		}

		long startTime = System.nanoTime();
		for (int count = 0 ; count < times ; ++count) {
			try {
				if (shouldThrow) {
					throw new NotRaisedException();
				}
			} catch (NotRaisedException e) {
				// ...
			}
		}
		long endTime = System.nanoTime();
		System.out.println("Run-Time (ns) " + (endTime - startTime));
	}
}
