class JavaClass { public static void run(Runnable r1, Runnable r2) { r1.run(); r2.run(); } }