One simple way is to append your list items in a StringBuilder

List<Integer> list = new ArrayList<>();
list.add(1);
list.add(2);
list.add(3);

StringBuilder b = new StringBuilder();
list.forEach(b::append);

System.out.println(b);

you can also try:

String s = list.stream().map(e -> e.toString()).reduce("", String::concat);

Explanation: map converts Integer stream to String stream, then its reduced as concatenation of all the elements.

Note: This is normal reduction which performs in O(n2)

for better performance use a StringBuilder or mutable reduction similar to F. Böller's answer.

String s = list.stream().map(Object::toString).collect(Collectors.joining(","));

Ref: Stream Reduction

Answer from Shailesh Aswal on Stack Overflow
🌐
Java Code Geeks
javacodegeeks.com › home › core java
Java 8 - Converting a List to String with Examples - Java Code Geeks
July 5, 2021 - First, we will understand how to make List to String using toString() method. Next, Collection to String with comma separator or custom delimiter using Java 8 Streams Collectors api and String.join() method.
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)
🌐
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 - A solid grasp of the fundamentals will go a long way to help minimize these issues. Get started with understanding multi-threaded applications with our Java Concurrency guide: ... Since its introduction in Java 8, the Stream API has become a staple of Java development.
🌐
Java2Blog
java2blog.com › home › conversion › java list to string
Java List to String - Java2Blog
October 18, 2021 - StringBuilder is the best approach ... can add elements in the object of StringBuilder using the append() method while looping and then convert it into string using toString() method of String class at the end....
🌐
TraceDynamics
tracedynamics.com › list-to-string-java
Convert List to String Java : 10+ Methods (ArrayList, String)
December 15, 2023 - Utilize the Java Util Stream Collectors API package for converting a List to a String. This method leverages the stream() method for efficient data processing and transformation, suitable for diverse applications.
🌐
Javaprogramto
javaprogramto.com › 2021 › 06 › java-8-convert-list-to-string.html
Java 8 - Converting a List to String with Examples JavaProgramTo.com
November 11, 2021 - First, we will understand how to make List to String using toString() method. Next, Collection to String with comma separator or custom delimiter using Java 8 Streams Collectors api and String.join() method.
🌐
Java Guides
javaguides.net › 2024 › 09 › java-8-convert-list-of-strings-to-single-string.html
Java 8 – Convert List of Strings to a Single String
September 9, 2024 - In Java 8, converting a list of strings into a single string is easy with the Stream API and Collectors.joining().
Find elsewhere
🌐
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.
🌐
Coderwall
coderwall.com › p › im4lja › joining-objects-into-a-string-with-java-8-stream-api
Joining Objects into a String with Java 8 Stream API (Example)
July 17, 2023 - You can leverage Java 8 Collectors to concatenate some objects into a string separated by a delimiter: For example: List<Integer> numbers = Arrays.asList( 4, 8, 15, 16, 23, 42 ); return numbers.stream() .map( n -> n.toString() ) .collect( ...
🌐
Javatpoint
javatpoint.com › convert-list-to-string-in-java
Convert List to String in Java - Javatpoint
Convert List to String in Java with java tutorial, features, history, variables, object, programs, operators, oops concept, array, string, map, math, methods, examples etc.
🌐
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 - List<String> outputList; outputList = inputList .stream() .map((obj) -> Objects.toString(obj, null)) .collect(Collectors.toList()); Assert.assertEquals(expectedStringList, outputList); This approach works well for Java 8 and above as the Streams ...
🌐
Baeldung
baeldung.com › home › java › java string › convert a list to a comma-separated string
Convert a List to a Comma-Separated String | Baeldung
July 2, 2025 - List conversion is still a hot ... tutorial, we’ll learn how to convert a List of String to a comma-separated String using four different approaches. We’ll use three different classes and their methods, available since Java 8, for conversion....
🌐
Mkyong
mkyong.com › home › java › java 8 stream – convert list> to list
Java 8 Stream – Convert List<List<String>> to List<String> | mkyong.com
July 18, 2019 - package com.mkyong.test; import java.util.Arrays; import java.util.List; import java.util.Scanner; import java.util.stream.Collectors; public class Java9Example2 { public static void main(String[] args) { List<String> numbers = Arrays.asList("1", "2", "A", "B", "C1D2E3"); List<String> collect = numbers.stream() .map(x -> new Scanner(x).findAll("\\D+") .map(m -> m.group()) .collect(Collectors.toList()) ) // List<List<String>> .flatMap(List::stream) // List<String> .collect(Collectors.toList()); collect.forEach(x -> System.out.println(x)); } }
🌐
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.
🌐
Attacomsian
attacomsian.com › blog › java-convert-a-list-of-objects-to-list-of-strings
How to convert a list of objects to a list of strings in Java
October 29, 2022 - To convert a list of objects to a list of strings in Java, you can use the Streams API map() method.
🌐
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.