public class Taco { public static void main(String[] args) { Thread vegetableThread = new Thread(new ChopVegetablesTask()); Thread meatThread = new Thread(new CookMeatTask()); Thread tortillaThread = new Thread(new HeatTortillasTask()); vegetableThread.start(); meatThread.start(); tortillaThread.start(); try { vegetableThread.join(); meatThread.join(); tortillaThread.join(); } catch (InterruptedException e) { System.err.println("Noe gikk galt! " + e); } System.out.println("Taco is done!"); } }