import java.lang.Runnable; class Traad implements Runnable{ private int id; public Traad(int id){ this.id = id; } @Override public void run(){ for(int i = 0; i <= 9; i++){ System.out.println(i + " fra traad " + id); } } }