class ThreadEx { public static void main(String args[]) { System.out.println("Thread Beispiel"); TicTacToe tic = new TicTacToe("Tic "); TicTacToe tac = new TicTacToe("Tac "); TicTacToe toe = new TicTacToe("Toe "); Thread t1 = new Thread(tic); Thread t2 = new Thread(tac); Thread t3 = new Thread(toe); t1.start(); t2.start(); t3.start(); System.out.println("Hauptprogramm"); } } class TicTacToe implements Runnable{ String was; int warteZeit; TicTacToe(String s){ was = s; } TicTacToe(String s, int t){ was = s; warteZeit = t;} public void run(){ System.out.println(was); } }