Skip to main content
2 of 4
deleted 1 character in body
user12205
  • 9k
  • 3
  • 33
  • 65

Java, 76

Counting only the insertions made to the code, ignoring new lines.

class P{public static void main(String[]A){ try { while(true) try { int a=1/0;try{ } catch(Exception ex2) { } } catch(Exception ex1) { // your goal is to reach this catch block by modifying the code ... // in the inner try block above // You win if you reach this part and execute on of the following code lines //Console.WriteLine("You won!"); // for C# // Or System.out.println("You won!"); // for Java } }catch(Error e){}}} 
user12205
  • 9k
  • 3
  • 33
  • 65