A method to reverse effect of java String.split()? [duplicate] Ask Question

A method to reverse effect of java String.split()? [duplicate] Ask Question

I am looking for a method to combine an array of strings into a delimited String. An opposite to split().

Wanted to ask the forum before I try writing my own (since the JDK has everything)

ベストアンサー1

There's no method in the JDK for this that I'm aware of. Apache Commons Lang has various overloaded join() methods in the StringUtils class that do what you want.

おすすめ記事