| | |
how to tokenize a long string by using another string
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2006
Posts: 68
Reputation:
Solved Threads: 0
hi
i want to break the following string..
{ok,[{operators,'sri','mob',45,45,45,45},{operators,'sri','dia',45,45,45,45}]}
by using {operators, this point..
i used the StringTokenizer class to do this by giving the {operators, as Delimiter.
But when it runs it gives completely different result than I expected
that is it was matched any character that the delimiter include..
So please anyone can help me to do this
i want to break the following string..
{ok,[{operators,'sri','mob',45,45,45,45},{operators,'sri','dia',45,45,45,45}]}
by using {operators, this point..
i used the StringTokenizer class to do this by giving the {operators, as Delimiter.
But when it runs it gives completely different result than I expected
that is it was matched any character that the delimiter include..
So please anyone can help me to do this
Can you please provide code.... <== was my original message
LOL iamthwee beaten me for faster response, good link which you provided
LOL iamthwee beaten me for faster response, good link which you provided
Last edited by peter_budo; Feb 7th, 2007 at 3:07 pm.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- Parse or Tokenize String (C++)
- string to long and string to double in c (C)
- Long String (C++)
- Conver int Array into a String (Java)
- string translation (Java)
Other Threads in the Java Forum
- Previous Thread: Practice Programs
- Next Thread: Problem using serializable coding
| Thread Tools | Search this Thread |
Tag cloud for Java
affinetransform android api apple applet application arc arguments array arrays automation binary bluetooth businessintelligence chat class classes client code component database desktop draw ebook eclipse encode equation error event exception file fractal game givemetehcodez graphics gui helpwithhomework html ide image input integer intersect j2me java javaexcel javaprojects jmf jni jpanel julia linked linux list loop mac main map method methods mobile netbeans newbie number online open-source oracle parameter print problem program programming project properties recursion reference replaysolutions rotatetext scanner score screen scrollbar server set size sms socket sort sql string superclass swing template test threads time tree windows working xstream






