/* Names.java
   This program creates three thread objects with instance
   variables that store names. The run method of these threads
   simply displays the thread's name and a counter three times
   */
class Names extends Thread {
  String myName;
  names(String name) {
    myName = name;
   } 

// Override the concurrent method, run

  public void run() {
    for (int counter = 0; counter < 3; counter++)
      System.out.println(myName + "  counter = " + counter);
  } 

// The main method

  public static void main(String [] args) {

// Create and start three threads

    new Names("Jake  ").start();
    new Names("Darcie").start();
    new Names("Bob   ").start();
   }  //** end of main method  
 }  //** end of names class

