// Cross a Try Statement with a Finally Clause public class CrossFinally { public static void main(String[] args) { int times = 1; boolean shouldThrow = false; if (0 < args.length) { times = Integer.parseInt(args[0]); } for (int count = 0 ; count < times ; ++count) { try { // ... } finally { // ... } } } }