View Single Post
  #16 (permalink)  
Old 04-10-2008, 01:15 PM
DonCash's Avatar
DonCash DonCash is offline
Moderator
 
Join Date: Aug 2007
Location: London, UK
Posts: 239
DonCash will become famous soon enoughDonCash will become famous soon enough
I didnt know you couldn't split with multiple characters like || actually. I thought the Array placement was quite strange..

How about this?

Code:
String myString = "a||b||c"; myString = myString.replace("||", ","); String[] split = myString.split(","); System.out.println(split[0]+split[1]+split[2]);
There wont be any problems with looping through the arrays then...
__________________
Did this post help you? Please
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
me!

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by DonCash : 04-10-2008 at 01:17 PM.
Reply With Quote