Thread
:
[SOLVED] fix the error in java program...?
View Single Post
#
2
(
permalink
)
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;
__________________
eeadie