// ModThread.java
// Demonstates creating threads by extending the Thread class

class ModThread extends Thread {
  int m, n;
  ModThread ( int x, int y ) {
    m = x;
    n = y;
  }

  public void run() {
    System.out.printf ("%d mod %d is %d\n", m, n, m % n );
  }
}
