Class Counter

java.lang.Object
java.lang.Thread
edu.pdx.cs410J.net.Counter
All Implemented Interfaces:
Runnable

public class Counter extends Thread
A Counter is something that counts in its own thread.
  • Constructor Details

    • Counter

      public Counter(String name)
      Creates a new Counter with a given name
  • Method Details

    • run

      public void run()
      The code that performs the counting.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread