public class main{ public static void main (String[] args){ Runner1 runner1 = new Runner1(); Runner2 runner2 = new Runner2(); runner1.execute(); runner2.execute(); } } class Runner1 { public void execute(){ for (int i=0; i<10; ++i) System.out.println("I am Runner1 " + i); } } class Runner2 { public void execute(){ for (int i=0; i<10; ++i) System.out.println("I am Runner2 " + i); } }