class Teller implements Runnable { private int id, n; public Teller(int id, int n) { this.id=id; this.n = n; } @Override public void run() { for (int i = 1; i < n; i++) { System.out.println("Thread: " + id + " teller: " + i); } } }