The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

StringTokeniser

Posted by Sean on October 09, 2000 at 6:19 AM

The stringTokeniser class, tokenises strings using the characters
in the token that you pass when creating the stringtokeniser class :eg

theString = "hello# please~ tokenise~# my strings";
theToken = "~#"

tokenising theString would return :

hello
please
tokenise
my strings

but I require myString to be tokenised using all the characters in theTokens ("~#")and so theString would be split into

hello# please~ tokenise
my strings";

Does anyone know which if there is a utility class that will do this ??






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us