public class TacoPreparation { public static void main(String[] args) { //lage tr?der Thread vegThread = new Thread(new ChopVegetablesTask()); Thread cookMeatThread = new Thread(new CookMeatTask()); Thread tortillaThread = new Thread(new HeatTortillasTask()); //starte tr?der vegThread.start(); cookMeatThread.start(); tortillaThread.start(); //joine tr?der try { vegThread.join(); cookMeatThread.join(); tortillaThread.join(); System.out.println("All tasks are completed! Serve the tacos!"); } catch (InterruptedException e) { } } }