Tuesday, February 22, 2011

Tokenizer

Java: 
 
String speech = "Four score and seven years ago";
StringTokenizer st = new StringTokenizer(speech);
while (st.hasMoreTokens()) {
  println(st.nextToken());
}

No comments:

Post a Comment