title: Returning StringTokenizer to be able to setText on a Textarea
body: <p>Dunno what to do, what is the best way to do this.</p>
  
  <p>this code is in my actionlistner for a button if clicked</p>
  
  <pre><code>text = stringtokenizer(text);
  ta2.setText(text);
  </code></pre>
  
  <p>ta2 is a textarea</p>
  
  <p>this is the method for stringtokenizer</p>
  
  <pre><code>public static StringTokenizer stringtokenizer(String text) {
  
      StringTokenizer tx = new StringTokenizer(text);
  
      while (tx.hasMoreElements()) {
  
          System.out.println(tx.nextElement());
      }
  
      return tx;
  
  }
  </code></pre>
  
  <p>how can i be able to return the elements and print it in the textarea. </p>