FileDocCategorySizeDatePackage
StringCounterT.javaAPI DocExample494Mon Mar 02 21:09:30 GMT 1998None

StringCounterT

public class StringCounterT extends Thread

Fields Summary
private String
str
Constructors Summary
public StringCounterT(String s)

  str = s;
   
Methods Summary
public static voidmain(java.lang.String[] args)

  new StringCounterT( "Fred" ).start();
      new StringCounterT( "Alice" ).start();
   
public voidrun()

  for( int i = 1; i <= 5; i++ )
      {  System.out.println( "" + i + "\t" + str );
         yield();
      }