Try something like

List<String> myList = new ArrayList<String>(Arrays.asList(s.split(",")));
  • Arrays.asList documentation
  • String.split documentation
  • ArrayList(Collection) constructor documentation

Demo:

String s = "lorem,ipsum,dolor,sit,amet";

List<String> myList = new ArrayList<String>(Arrays.asList(s.split(",")));

System.out.println(myList);  // prints [lorem, ipsum, dolor, sit, amet]
Answer from aioobe on Stack Overflow
๐ŸŒ
BeginnersBook
beginnersbook.com โ€บ 2013 โ€บ 12 โ€บ how-to-convert-arraylist-to-string-array-in-java
How to convert ArrayList to string array in java
Here we have an arraylist names, this list contains names. We are converting this arraylist to an array using toArray(). import java.util.*; public class JavaExample { public static void main(String[] args) { //An ArrayList of strings ArrayList<String> names= new ArrayList<>(); names.add("Ankur"); names.add("Ajeet"); names.add("Harsh"); names.add("John"); // ArrayList to Array Conversion using toArray() String arr[]=names.toArray(new String[names.size()]); //Print array elements for(String str: arr) { System.out.println(str); } } } Output: Ankur Ajeet Harsh John ยท
๐ŸŒ
Java2Blog
java2blog.com โ€บ home โ€บ conversion โ€บ java list to string
Java List to String - Java2Blog
October 18, 2021 - Following are the ways to convert list into String: ... We can use StringBuilder class to convert List to String.
๐ŸŒ
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 string โ€บ convert an arraylist of string to a string array in java
Convert an ArrayList of String to a String Array in Java | Baeldung
March 7, 2025 - One common task is converting an ArrayList of Strings to a String array. In this tutorial, weโ€™ll explore how to accomplish this conversion seamlessly using Javaโ€™s built-in methods and techniques. An example can help us to understand the problem quickly. Letโ€™s say we have the following ArrayList, which contains some artistsโ€™ names: static final List<String> INPUT_LIST = Lists.newArrayList("Michael Bolton", "Michael Jackson", "Guns and Roses", "Bryan Adams", "Air Supply");
๐ŸŒ
Oracle
docs.oracle.com โ€บ javase โ€บ 8 โ€บ docs โ€บ api โ€บ java โ€บ util โ€บ List.html
List (Java Platform SE 8 )
2 weeks ago - The following code can be used to dump the list into a newly allocated array of String:
๐ŸŒ
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 - // Create a list of users List<User> users = List.of( new User("John Doe", "Engineer", 23), new User("Alex Mike", "Doctor", 43), new User("Jovan Lee", "Lawyer", 34) ); // Convert list of users to list of strings List<String> list = users.stream() .map(User::toString) .collect(Collectors.toList()); // Print list of strings list.forEach(System.out::println); // User{name='John Doe', profession='Engineer', age=23} // User{name='Alex Mike', profession='Doctor', age=43} // User{name='Jovan Lee', profession='Lawyer', age=34}
๐ŸŒ
LeetCode
leetcode.com โ€บ problem-list โ€บ string
Problem List - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
Find elsewhere
๐ŸŒ
TestMu AI Community
community.testmuai.com โ€บ ask a question
How can I join a Java List into a single String? - Ask a Question - TestMu AI Community
April 2, 2025 - JavaScript has Array.join(), which allows joining elements like this: ["Bill","Bob","Steve"].join(" and ") // Output: "Bill and Bob and Steve" Does Java have a built-in way to achieve this, or do I need to manually implement a java list join method using StringBuilder?
๐ŸŒ
DZone
dzone.com โ€บ coding โ€บ java โ€บ convert a list to a comma-separated string in java 8
Java 8: Convert a List to a Comma-Separated String
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.
๐ŸŒ
W3Schools
w3schools.com โ€บ java โ€บ java_ref_string.asp
Java String Reference
Java Wrapper Classes Java Generics Java Annotations Java RegEx Java Threads Java Lambda Java Advanced Sorting ... How Tos Add Two Numbers Swap Two Variables Even or Odd Number Reverse a Number Positive or Negative Square Root Area of Rectangle Celsius to Fahrenheit Sum of Digits Check Armstrong Num Random Number Count Words Count Vowels in a String Remove Vowels Count Digits in a String Reverse a String Palindrome Check Check Anagram Convert String to Array Remove Whitespace Count Character Frequency Sum of Array Elements Find Array Average Sort an Array Find Smallest Element Find Largest Element Second Largest Array Min and Max Array Merge Two Arrays Remove Duplicates Find Duplicates Shuffle an Array Factorial of a Number Fibonacci Sequence Find GCD Check Prime Number ArrayList Loop HashMap Loop Loop Through an Enum
๐ŸŒ
Edureka Community
edureka.co โ€บ home โ€บ community โ€บ categories โ€บ java โ€บ how to convert arraylist string to string in...
How to convert ArrayList String to String in Java | Edureka Community
May 21, 2018 - How to convert ArrayList String to String in... how do I turn a double in an array from 1000 to infinity Jul 9, 2024 ยท I have created a code in java for a flower shop and now my IDE is showing all the inputs are in red showing there is an error Jul 6, 2024 ... How to display two independent different drop down list ...
๐ŸŒ
Baeldung
baeldung.com โ€บ home โ€บ java โ€บ java string โ€บ convert a comma separated string to a list in java
Convert a Comma Separated String to a List in Java
September 3, 2025 - Now, weโ€™ll implement the same conversions using the Java Stream API. First, weโ€™ll convert our countries string into an array of strings using the split method in the String class. Then, weโ€™ll use the Stream class to convert our array into a list of strings:
๐ŸŒ
C# Corner
c-sharpcorner.com โ€บ article โ€บ convert-list-of-strings-into-single-string
How To Convert a List to a String in C#
February 9, 2023 - // C# List of strings List<string> alphabets = new List<string>(){ "A", "B", "C", "D", "Eโ€}; If we want to write some logic while concatenating the strings, we can implement through for loop.
๐ŸŒ
Python documentation
docs.python.org โ€บ 3 โ€บ library โ€บ stdtypes.html
Built-in Types โ€” Python 3.14.3 documentation
February 25, 2026 - There are three basic sequence types: lists, tuples, and range objects. Additional sequence types tailored for processing of binary data and text strings are described in dedicated sections. The operations in the following table are supported by most sequence types, both mutable and immutable. The collections.abc.Sequence ABC is provided to make it easier to correctly implement these operations on custom sequence types.
๐ŸŒ
Blogger
javarevisited.blogspot.com โ€บ 2022 โ€บ 12 โ€บ 6-ways-to-convert-arraylist-to-string.html
6 Ways to convert ArrayList to String in Java - Example Tutorial
This method is also null safe and null objects or empty strings within the iteration are represented by empty strings. Google Guava is one of the famous general purpose library which deserve a place in every Java project. It provides common utility classes which can make your code simpler and easier to read, write, and test. Here is an example of Google Guava's Joiner class which can be used to convert a List to String in Java.
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ how-to-initialize-a-java-list
How to Initialize a Java List โ€“ List of String Initialization in Java
April 14, 2023 - In this article, we will explore the different methods to initialize a Java list and provide examples to illustrate their usage.
๐ŸŒ
Coderanch
coderanch.com โ€บ t โ€บ 673871 โ€บ java โ€บ Convert-ArrayList-Integer-String-brackets
Convert ArrayList<Integer> to a String without the [] brackets (Beginning Java forum at Coderanch)
December 14, 2016 - salvin francis wrote:But if it had to be comma Based on Junilu's suggestion, you could just simply chop-off the delimiter's length off the end of the string. ... Let's try some Java8 coding. As we all know you can get a Stream out of every List (well, more precisely every Collection) with its stream() method.
๐ŸŒ
Lifealong
0soo.tistory.com โ€บ 91
Java List to String array. ๋ฆฌ์ŠคํŠธ๋ฅผ ์ŠคํŠธ๋ง์œผ๋กœ โ€” Lifealong
November 14, 2022 - Java List to String array ์ž๋ฐ”์—์„œ List ํƒ€์ž…์„ String array (String ๋ฐฐ์—ด)๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค 1. String.join ๋ฉ”์†Œ๋“œ List list = Arrays.asList("์ˆ˜", "์˜", "๊น€"); String joined = String.join(" and ", list); 2. Collectios.joining ๋ฉ”์†Œ๋“œ class Person { private ...