public static String[] parseWords(String tagValue){
  StreamTokenizer tokenizer=makeTokenizer(tagValue);
  List<String> wordList=new ArrayList<String>();
  try {
    while (tokenizer.nextToken() != StreamTokenizer.TT_EOF) {
      if (tokenizer.sval == null) {
        wordList.add(Character.toString((char)tokenizer.ttype));
      }
 else {
        wordList.add(tokenizer.sval);
      }
    }
  }
 catch (  IOException e) {
    e.printStackTrace();
    throw new RuntimeException("error tokenizing tag");
  }
  return wordList.toArray(new String[0]);
}

public static String [ ] parseWords ( String tagValue ) { StreamTokenizer tokenizer = makeTokenizer ( tagValue ) ; List < String > wordList = new ArrayList < String > ( ) ; try { while ( tokenizer . nextToken ( ) != StreamTokenizer . TT_EOF ) { if ( tokenizer . sval == null ) { wordList . add ( Character . toString ( ( char ) tokenizer . ttype ) ) ; } else { wordList . add ( tokenizer . sval ) ; } } } catch ( IOException e ) { e . printStackTrace ( ) ; throw new RuntimeException ( "error tokenizing tag" ) ; } return wordList . toArray ( new String [ 0 ] ) ; }
extract an array of positional parameters
