public class Zadanie07_03 { public static void main(String[] args) { Shared t=new Shared(15); //15 zapalek, 2 graczy Player tab[]={new PlayerMan("The Student I",t,PlayerMan.CONSOLE), new PlayerMan("The Student II",t,PlayerMan.INPUT_DIALOG)}; for(Player p: tab) p.start(); System.out.println("Główny watek czeka, az ktos wygra..."); } }