@@ -0,0 +1,585 @@
+package org.psjava.util;%0A%0Aimport java.io.BufferedInputStream;%0Aimport java.io.FileInputStream;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.PrintStream;%0A%0Apublic class ContestLauncher %7B%0A%0A    public static void run(Runnable runnable, String inputInHome, String outputInHome) throws FileNotFoundException %7B%0A        String home = System.getProperty(%22user.home%22);%0A        System.setIn(new BufferedInputStream(new FileInputStream(home + inputInHome)));%0A        System.setOut(PrintStreamMerger.merge(System.out, new PrintStream(home + outputInHome)));%0A        runnable.run();%0A    %7D%0A%0A%7D%0A

add a util - ContestLauncher