In Java 8 or later:

String listString = String.join(", ", list);

In case the list is not of type String, a joining collector can be used:

String listString = list.stream().map(Object::toString)
                        .collect(Collectors.joining(", "));
Answer from Vitalii Fedorenko on Stack Overflow
🌐
Baeldung
baeldung.com › home › java › java string › converting a list to string in java
Converting a List to String in Java | Baeldung
July 30, 2026 - It’s a convenient way to combine a collection of Strings into a single String with a custom delimiter between each element. Let’s first look at how the method joins a String List:
People also ask

What are some common issues faced when converting a list to a string in Java?
Common issues include handling null values, adding unnecessary commas, and managing formatting.
🌐
tracedynamics.com
tracedynamics.com › list-to-string-java
Convert List to String Java : 10+ Methods (ArrayList, String)
How can you remove brackets when converting a list to a string in Java?
Use a string joiner or a string builder to concatenate elements without brackets.
🌐
tracedynamics.com
tracedynamics.com › list-to-string-java
Convert List to String Java : 10+ Methods (ArrayList, String)
What are the differences between hashmap and hashtable in Java?
HashMap is not synchronized and allows one null key, while Hashtable is synchronized and doesn't allow null keys or values.
🌐
tracedynamics.com
tracedynamics.com › list-to-string-java
Convert List to String Java : 10+ Methods (ArrayList, String)
🌐
Java Code Geeks
javacodegeeks.com › home › core java
Java 8 - Converting a List to String with Examples - Java Code Geeks
July 5, 2021 - This conversion is done with the simple steps with java api methods. First, we will understand how to make List to String using toString() method.
🌐
Java2Blog
java2blog.com › home › conversion › java list to string
Java List to String - Java2Blog
October 18, 2021 - This method is very handy to create delimited separated String from list. This approach will work only for List of String. In case, if you have list of Double, then you can use java 8‘s Collectors to join the String.
🌐
GeeksforGeeks
geeksforgeeks.org › java › convert-list-of-characters-to-string-in-java
Convert List of Characters to String in Java - GeeksforGeeks
July 11, 2025 - It comprises index-based techniques to insert, update, delete, and search the elements of the list. It can have duplicate elements also. The List interface is located in java.util package and inherits the Collection interface. There are numerous approaches to convert the List of Characters to String in Java.
🌐
TraceDynamics
tracedynamics.com › list-to-string-java
Convert List to String Java : 10+ Methods (ArrayList, String)
December 15, 2023 - This Java tutorial delves into the intricacies of converting any type of Java collection, from ArrayLists and LinkedLists to generic collections with specified type parameters, into a concise and informative string representation. Beyond simple list-to-string conversion, mastering techniques ...
🌐
Vultr
docs.vultr.com › java › standard library › java › util › arraylist › tostring()
Java ArrayList toString() - Convert To String
November 19, 2024 - Use this method instead of the direct toString() call for more control. ... import java.util.ArrayList; public static String customToString(ArrayList<?> list) { StringBuilder builder = new StringBuilder("["); for (int i = 0; i < list.size(); i++) { builder.append(list.get(i).toString()); if (i < list.size() - 1) { builder.append("; "); } } builder.append("]"); return builder.toString(); } ArrayList<Integer> numbers = new ArrayList<>(); numbers.add(10); numbers.add(20); numbers.add(30); String customResult = customToString(numbers); System.out.println(customResult);
Find elsewhere
🌐
ZetCode
zetcode.com › java › list2string
Java List to String - Converting a List to a String in Java
May 31, 2025 - Collectors.joining - Works with Java Streams for advanced list processing. StringBuilder - Best for performance in large string concatenations. StringJoiner - Useful for structured output with prefixes and suffixes. Manual string concatenation (loops) - A traditional approach, but less efficient. By choosing the right method, you can optimize performance and readability based on your specific use case. The simplest way to join list elements with a delimiter:
🌐
Programiz
programiz.com › java-programming › library › arraylist › tostring
Java ArrayList toString()
import java.util.ArrayList; class ... System.out.println("ArrayList: " + languages); // convert ArrayList to String String list = languages.toString(); System.out.println("String: " + list); } } Output ·...
🌐
Coderanch
coderanch.com › t › 502761 › java › List-String
List to String (Java in General forum at Coderanch)
July 14, 2010 - list.get(index).toString() will convert any of the values to a String (whether that's useful will depend on what sort of objects they are).
🌐
Baeldung
baeldung.com › home › java › java list › convert an arraylist of object to an arraylist of string elements
Convert an ArrayList of Object to an ArrayList of String Elements | Baeldung
March 7, 2025 - We can leverage the Java Streams API to solve our problem as well. We first convert the inputList, our data source, to a stream by applying the stream() method. Once we have a stream of elements, which are of type Object, we need an intermediate operation, which in our case is to do the object-to-string conversion, and finally, a terminal operation, which is to collect the results into another list of type String.
🌐
Reverse Coding
reversecoding.net › java-8-convert-list-string-comma
Java 8 - Convert List to String comma separated | Reverse Coding
May 22, 2016 - For the old times’ sake, let’s have a look at Java 7 implementation. private static final String SEPARATOR = ","; public static void main(String[] args) { List<String> cities = Arrays.asList( "Milan", "London", "New York", "San Francisco"); StringBuilder csvBuilder = new StringBuilder(); for(String city : cities){ csvBuilder.append(city); csvBuilder.append(SEPARATOR); } String csv = csvBuilder.toString(); System.out.println(csv); //OUTPUT: Milan,London,New York,San Francisco, //Remove last comma csv = csv.substring(0, csv.length() - SEPARATOR.length()); System.out.println(csv); //OUTPUT: Milan,London,New York,San Francisco
🌐
Baeldung
baeldung.com › home › java › java list › convert a list of integers to a list of strings
Convert a List of Integers to a List of Strings | Baeldung
June 9, 2025 - In this short article, we’ve learned three ways to convert List<Integer> to List<String>. If our Java version is 8+, Stream API would be the most straightforward conversion method.
🌐
GeeksforGeeks
geeksforgeeks.org › java › convert-an-arraylist-of-string-to-a-string-array-in-java
Convert an ArrayList of String to a String Array in Java - GeeksforGeeks
July 11, 2025 - In Java, as we all know ArrayList class is derived from the List interface. Here we are given an ArrayList of strings and the task is to convert the ArrayList to a string array.
🌐
Programiz
programiz.com › java-programming › examples › arraylist-string-conversion
Java Program to Convert the ArrayList into a string and vice versa
To learn more, visit Java ArrayList ... System.out.println("ArrayList: " + languages); // convert the arraylist into a string String arraylist = String.join(", ", languages); System.out.println("String: " + arraylist); } }...
🌐
Wyzant
wyzant.com › resources › ask an expert
Java: convert List<String> to a String? | Wyzant Ask An Expert
March 13, 2019 - Experienced Java tutor ready to help you succeed! About this tutor › · About this tutor › · You can use String.join() List<String> names = Arrays.asList(new String[] {"Abe", "Barb", "Chris", "Dawn"}); System.out.println(String.join(", ", names)); This prints: Abe, Barb, Chris, Dawn ·
🌐
DZone
dzone.com › coding › java › convert a list to a comma-separated string in java 8
Convert a List to a Comma-Separated String in Java 8 - DZone
June 29, 2016 - This tutorial demonstrates how to use streams in Java 8 and Java 7 to convert a list to a comma-separated string by manipulating the string before joining.
🌐
Medium
medium.com › @AlexanderObregon › turning-a-java-list-into-a-comma-separated-string-efc1b6c44d1b
Turning a Java List into a Comma-Separated String | Medium
June 20, 2025 - That pattern works well when you don’t have access to an index or don’t want to deal with list size. StringBuilder holds its data in a plain character array. When you call append, it copies new characters into that array. If the array fills up, StringBuilder allocates a new larger one and copies everything over. This avoids constant object churn like String does with +. Calling toString() gives you a fresh String copy of everything that was added. That final step turns the mutable character data into the fixed String object Java uses everywhere else.