View Single Post
  #2 (permalink)  
Old 06-10-2007, 05:50 PM
eeadie
Posts: n/a
Could use the split method for strings, for example:

String input = "Count the number of words here ";
String[] temp = input.split(" ");
int numWords = temp.length;

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!