@@ -0,0 +1,746 @@
+package projecteuler;%0A%0Aimport java.io.File;%0A%0Apublic class ProblemRunner %7B%0A%0A%09public static void main(String args%5B%5D) throws Exception %7B%0A%09%09String%5B%5D problems;%0A%09%09if (args.length == 1) %7B%0A%09%09%09problems = new String%5B%5D %7B args%5B0%5D %7D;%0A%09%09%7D else %7B%0A%09%09%09problems = new File(%22./src/projecteuler/problem%22).list();%0A%09%09%09for (int i = 0; i %3C problems.length; i++) %7B%0A%09%09%09%09problems%5Bi%5D = problems%5Bi%5D.substring(0, problems%5Bi%5D.length() - 5);%0A%09%09%09%7D%0A%09%09%7D%0A%09%09for (String problem : problems) %7B%0A%09%09%09String className = %22projecteuler.problem.%22 + problem;%0A%09%09%09Class%3C?%3E clazz = Class.forName(className);%0A%09%09%09Object obj = clazz.newInstance();%0A%09%09%09System.out.println(obj);%0A%09%09%09String result = (String) clazz.getMethod(%22getResult%22).invoke(obj);%0A%09%09%09System.out.println(%22Result: %22 + result);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create ProblemRunner.java