home *** CD-ROM | disk | FTP | other *** search
/ Datatid 1999 #6 / Datatid_1999-06.iso / internet / Tango352Promo / Tango / data.z / Echo.java < prev    next >
Encoding:
Java Source  |  1999-02-03  |  723 b   |  28 lines

  1. package com.everyware.tango.jas;
  2.  
  3. import com.everyware.tango.jas.*;
  4.  
  5. /**
  6. * @author <a href="http://www.pervasive.com/">Pervasive Software Inc.</a>, 1997, 1999.
  7. */
  8.  
  9. public class Echo extends Action 
  10. {
  11.     // provide an implementation of customProcessing to do the work
  12.     public void customProcessing(String argv[])
  13.     {    
  14.         int i;
  15.         // first declare how many columns per row
  16.         setNumColumns(1);
  17.         // use the second argument to control our iteration
  18.         Integer iteration = new Integer(argv[1]);
  19.         // now go into a loop returning the first argument in multiple rows
  20.         for (i=0; i< iteration.intValue(); i++) {
  21.             // start a new row
  22.             newRow();
  23.             // add a column to the row
  24.             newColumn(argv[0]);
  25.         }
  26.     }
  27. }
  28.