(String[] args)
| 58 | } |
| 59 | |
| 60 | public static void main(String[] args) throws Exception { |
| 61 | BASE_DEPTH = args.length > 0 ? Integer.parseInt(args[0]) : 100; |
| 62 | VAR_DEPTH = args.length > 1 ? Integer.parseInt(args[1]) : 0; |
| 63 | boolean print = args.length > 2 && Boolean.parseBoolean(args[2]); |
| 64 | |
| 65 | DeepRecursion test = new DeepRecursion(); |
| 66 | for (int i = 0; ; i++) { |
| 67 | test.dispatch(); |
| 68 | if (print && i % 1000000 == 0) { |
| 69 | System.out.println("Made " + i + " calls"); |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | } |