Saturday, January 14, 2017

Java - Create a delimiter string from string array

What's the best way to convert a string array to a delimiter separated string.



eg:




String[] arr = {"apple","orange","banana","round"}; -------> apple-orange-banana-round?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...