FileDocCategorySizeDatePackage
Counter.javaAPI DocExample435Mon Feb 23 16:12:14 GMT 1998oreilly.jonathan.util

Counter

public class Counter extends Object implements Runnable

Fields Summary
protected boolean
mTrucking
protected int
mCounter
Constructors Summary
public Counter()

    mTrucking = true;
    mCounter = 0;
    Thread t = new Thread(this);
    t.start();
  
Methods Summary
public intgetCount()

 return mCounter; 
public voidrun()

    while (mTrucking)
      mCounter++;
  
public voidstop()

 mTrucking = false;