import java.util.StringTokenizer;

/**
 * StringTok1 --- A simple program to show the String Tokenizer
 * @author         Matthew Sharritt
 */

public class StringTok1 {

  /**
   * Reads a String and shows the separate tokens on their own line
   * @param arg A string array containing the command line arguments.
   * @return No return value.
   * @exception Exception If the file is not found or other error.
   */

  public static void main (String[] arg) throws Exception {
    StringTokenizer st = new StringTokenizer("this is a test");

    while (st.hasMoreTokens()) {
      System.out.println(st.nextToken());
    }
  }
}

