Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
 
dhwani mathur
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that, but it does not exist in J2ME, that's why I'm asking ...

Regards ...
 
selchis
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is one for character-cased tokenization.



from

http://worlddeveloper.org/www/forumtopicview.html?fid=43&categoryId=36&fpn=1
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic