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.
More Related Contents:
- How to split to string Java
- Need some advice on split() method in Java [closed]
- Java String split removed empty values
- How to split a String by space
- Split string with dot as delimiter
- Splitting on comma outside quotes
- Java string split with “.” (dot) [duplicate]
- How to convert comma-separated String to List?
- Splitting a string at every n-th character
- Why is StringTokenizer deprecated?
- How to split a string in Java
- How to split a comma-separated string?
- string to string array conversion in java
- How to split String with some separator but without removing that separator in Java? [duplicate]
- Extracting pairs of words using String.split()
- Java String.split() Regex
- Java: How to split a string by a number of characters?
- Split a string, at every nth position
- Java String.split() sometimes giving blank strings
- Java: String split(): I want it to include the empty strings at the end [duplicate]
- How to Split a mathematical expression on operators as delimiters, while keeping them in the result?
- Split the string on forward slash
- Java split is eating my characters
- The split() method in Java does not work on a dot (.) [duplicate]
- Java split String performances
- split string only on first instance – java
- Java: Get last element after split
- Split string with | separator in java
- Split string into repeated characters
- Java replace all square brackets in a string