View Single Post
  #4 (permalink)  
Old 07-28-2007, 01:19 AM
brianhks brianhks is offline
Senior Member
 
Join Date: Jul 2007
Posts: 134
brianhks will become famous soon enough
You need to do something like this:
Code:
boolean found = false; while (st.hasMoreElements()) { if (st.nextToken().equals(word)) found = true; } if (found) //say it was found else //say it was not found
Reply With Quote