aspose file tools*
The moose likes Java Micro Edition and the fly likes How to do tokenizing on a String in J2ME ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to do tokenizing on a String in J2ME ???" Watch "How to do tokenizing on a String in J2ME ???" New topic
Author

How to do tokenizing on a String in J2ME ???

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
The String class in J2ME does not have the split method

Can anybody tell me if there's an API that can help me to do so

Or i have to write my own ???

Thanks in advance ...


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
dhwani mathur
Ranch Hand

Joined: May 08, 2007
Posts: 621
You can check for the split method in the below shown link.It consist of "String Class with a split method".I think it will help you.

http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html


Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
I know that, but it does not exist in J2ME, that's why I'm asking ...

Regards ...
selchis
Greenhorn

Joined: May 28, 2007
Posts: 1
Hi, I had the same problem. No string tokenizer no nothing in J2ME. I ended up by writing lots of lines filled with indexOf and substring methods.
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Hi,

Nice to hear that, i will write my own then, and i will take your advice (indexOf() and substring() methods ) ...

Thank you ...
Rashid Mayes
Ranch Hand

Joined: Jan 11, 2006
Posts: 160
Here is one for character-cased tokenization.



from

http://worlddeveloper.org/www/forumtopicview.html?fid=43&categoryId=36&fpn=1


Rashid Mayes
http://www.hostj2me.com/ - http://www.worlddeveloper.org/
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Thank you ...
 
 
subject: How to do tokenizing on a String in J2ME ???