FileDocCategorySizeDatePackage
StringCounter.javaAPI DocExample452Mon Mar 02 21:02:02 GMT 1998None

StringCounter

public class StringCounter extends Object

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

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

  new StringCounter( "Fred" ).run();
      new StringCounter( "Alice" ).run();
   
public voidrun()

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