Help with text input?

I am looking for a way to take text that a user inputs and to be able to evaluate the individual words that are input. I have no problem setting up a JTextField and retrieving the input via getText(), but I want to be able to evaluate the words that the user enters so I can have the program respond based on the words.

Thanks in advance for any help I can get! :)

[378 byte] By [DrDouga] at [2007-11-27 5:30:20]
# 1
Can you give us an example of a phrase of words you might expect and what action(s) you might take
tjacobs01a at 2007-7-12 14:54:17 > top of Java-index,Java Essentials,New To Java...
# 2
You can use the String.split() method with " " (a space) as the parameter, which returns all the substrings that are between spaces in an array. http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#split(java.lang.String)
hunter9000a at 2007-7-12 14:54:17 > top of Java-index,Java Essentials,New To Java...
# 3
But for something like LALR(1), you probably should use a StreamTokenizer
tjacobs01a at 2007-7-12 14:54:17 > top of Java-index,Java Essentials,New To Java...