|
-
Feb 25th, 2005, 01:58 AM
#1
Thread Starter
Hyperactive Member
Converting String to String Array and vice-versa [Java]
Coding Style: NetBeans IDE 4.0 Beta2 [Java]
Given a string [strFormat] I need to convert it (using predefined delimiters {}) into a string array. And then I must be able to go the other way (convert the string array back into a string with delimiters {})
So for example:
Given a string strFormat = "{Hello}{Bye}{Ouch}"
I need to put this in a string array [strFormatArray] so that strFormatArray[0] = "Hello", strFormatArray[1] = "Bye", strFormatArray[2] = "Ouch"
Then later I need to be able to take the string array [strFormatArray] and convert it back to the original string [strFormat] with the delimiters.
Any easy way to accomplish this? [built in string and conversion functions]?
Any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|