Forums Register Login

Split String by $

+Pie Number of slices to send: Send
Hi,
I am trying to split a string by $ ..but I am not getting desirable output.
here is my code..


output:
Hello
strArr:0 element ->Fri Jul 16 16:01:23 IST 2010 $ sds
Run successfully..


Please help me out on this.
Thanks..
+Pie Number of slices to send: Send
one small correction ..

String strArr[]=str.trim().split("$");
instread of this // String strArr[]=str.trim().split("//$");


please help me.
+Pie Number of slices to send: Send
Wrong slashes try
+Pie Number of slices to send: Send
Try this one
>
+Pie Number of slices to send: Send
Thanks a lot Pramod and Martin for your quick reply...
today's feeble attempt to support the empire
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 808 times.
Similar Threads
Problem in parsing
problem with showing records in hibernate
Collections :List.add throws runtime Exception(Unsupported Exceptions)
read next byte
Why my program works fine when i write Thread.sleep(0)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 22:31:24.