Either write a simple method yourself, or use one of the various utilities out there.
Personally I use apache StringUtils (StringUtils.join)
edit: in Java 8, you don’t need this at all anymore:
String joined = String.join(",", name);
More Related Contents:
- how to execute same piece of code for both if and else
- How to parse a date? [duplicate]
- Are arrays passed by value or passed by reference in Java? [duplicate]
- Implementing back/forward buttons in Swing
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- Executing a Java application in a separate process
- Converting JSON to XML in Java
- How to force Selenium WebDriver to click on element which is not currently visible?
- How to compare two java objects [duplicate]
- How does Java “week year” really work?
- How to map a PostgreSQL array with Hibernate
- Java socket/serialization, object won’t update
- Custom JSON deserializer using Gson
- Does calling clone() on an array also clone its contents?
- How to make a deep copy of Java ArrayList [duplicate]
- Rotate BufferedImage Inside JPanel
- Sonar Violation: Security – Array is stored directly
- Comparing boxed Long values 127 and 128
- Access to file using Java with Samba JCIFS
- When should I use a CompletionService over an ExecutorService?
- How to replace a String in java which contains dot?
- How to use IntelliJ IDEA to find all unused code?
- How to check validity of Date String?
- Decoding URI query string in Java
- Java OutOfMemoryError in reading a large text file
- Using method reference instead of multi argument lambda
- what is Ljava.lang.String;@
- EAR vs separate EJB + WAR
- Configuring AspectJ aspects using Spring IoC with JavaConfig?
- Why can’t OffsetDateTime parse ‘2016-08-24T18:38:05.507+0000’ in Java 8