Possible Duplicate:
A method to reverse effect of java String.split()?
How do I take all the values within String[] args and make it into a single String variable?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I prefer Apache Commons
StringUtils.StringUtils.join(Object[] array, String separator)will join all the objects in the array with the given separator.If you want a subarray of your current array (e.g. skip the first three elements), use this: