List<String> strings = Arrays.asList(new String[]{"one", "two", "three"});

This is a list view of the array, the list is partly unmodifiable, you can't add or delete elements. But the time complexity is O(1).

If you want a modifiable a List:

List<String> strings = 
     new ArrayList<String>(Arrays.asList(new String[]{"one", "two", "three"}));

This will copy all elements from the source array into a new list (complexity: O(n))

Answer from Andreas Dolk on Stack Overflow
🌐
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");
🌐
Coderanch
coderanch.com › t › 754467 › java › array-list-strings-array-strings
From array list of strings to a 2d array of strings (Beginning Java forum at Coderanch)
September 20, 2022 - Give a simple list and the desire 2D array from that list. Can you post the current results from the code so we can see what it is doing? Use the Arrays.deepToString method to format the array for printing. Add some comments to show what the desired output is. ... JavaRanch-FAQ HowToAskQuestionsOnJavaRanch UseCodeTags DontWriteLongLines ItDoesntWorkIsUseLess FormatCode JavaIndenter SSCCE API-17 JLS JavaLanguageSpecification MainIsAPain KeyboardUtility
🌐
Sentry
sentry.io › sentry answers › java › how to convert an array to a list in java?
Java Convert an Array to a List Four Different Ways | Sentry
3 weeks ago - The Arrays.asList() method is the simplest way to convert an array to a List. import java.util.Arrays; import java.util.List; public class Main { public static void main(String[] args) { String[] array = {"Apple", "Banana", "Cherry"}; List<String> ...
🌐
Vultr Docs
docs.vultr.com › java › examples › convert a list to array and vice versa
Java Program to Convert a List to Array and Vice Versa
November 25, 2024 - You might need to convert a list to an array for API compatibility, or vice versa to utilize the dynamic features of lists. Understanding how to perform these conversions efficiently can greatly aid in handling collection data structures within your Java applications.
🌐
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 ·...
Find elsewhere
🌐
W3Schools
w3schools.com › java › java_arraylist.asp
Java ArrayList
It is part of the java.util package and implements the List interface. The difference between a built-in array and an ArrayList in Java, is that the size of an array cannot be modified (if you want to add or remove elements to/from an array, you have to create a new one). While elements can be added and removed from an ArrayList whenever you want. To use an ArrayList, you must first import it from java.util: Create an ArrayList object called cars that will store strings...
🌐
Baeldung
baeldung.com › home › java › java array › converting between an array and a list in java
Converting Between an Array and a List in Java Baeldung
August 6, 2025 - In this quick tutorial, we’re going to learn how to convert between an Array and a List using core Java libraries, Guava and Apache Commons Collections.
🌐
LabEx
labex.io › tutorials › java-converting-between-an-array-and-list-117399
Array to List Conversion | Java Programming | LabEx
To run the code, open the terminal, navigate to the project folder and type the following command: javac ArrayToList.java && java ArrayToList · We can also write our own method to convert a list to an array. We will loop through the list and fetch each element using the get() method and add it to the array using the array indices. We will perform the following steps to write our own method: Write a method that takes a list of strings as a parameter and returns a string array
🌐
GeeksforGeeks
geeksforgeeks.org › java › convert-a-string-to-a-list-of-characters-in-java
Convert a String to a List of Characters in Java - GeeksforGeeks
1 month ago - Create an empty ArrayList. Traverse the String using a loop. Get each character using charAt(). Add the character to the List. ... import java.util.ArrayList; import java.util.List; class StringToListLoop { public static void main(String[] args) ...
🌐
Coderanch
coderanch.com › t › 40 › 379449 › java › String-array-arraylist
String array to arraylist (Java in General forum at Coderanch)
June 7, 2012 - This method returns a List that is a "view" onto the array - a wrapper that makes the array look like a list. When you change an element in the list, the element in the original array is also changed. Note that the list is fixed size - if you try to add elements to the list, you'll get an exception.
🌐
Medium
medium.com › @AlexanderObregon › turning-a-string-into-a-list-of-words-in-java-c1e4bd85cad8
Turning a String into a List of Words in Java | Medium
July 28, 2025 - If you prefer a more compact way to write that filtering step, Java’s stream API lets you handle it in a single line while keeping things readable. Streams turn arrays or collections into pipelines, where each item flows through a series of operations. Here’s a version that matches the manual loop above: List<String> filteredWords = Arrays.stream(words) .map(String::trim) .filter(s -> !s.isEmpty()) .collect(Collectors.toList());
🌐
DZone
dzone.com › data engineering › data › how to convert between list and array in java
How to Convert Between List and Array in Java
August 1, 2018 - A ListToArrayConvertor class that converts a list to an array is shown below: ... import java.util.List; public class ListToArrayConvertor { public String[] convert(List<String> list){ return list.toArray(new String[list.size()]); } }
🌐
GeeksforGeeks
geeksforgeeks.org › java › conversion-of-array-to-arraylist-in-java
Conversion of Array To ArrayList in Java - GeeksforGeeks
July 23, 2025 - Since returned List is fixed-size therefore we can't add more element in it, but we can replace existing element with new element using set(index, new Element) method defined in ArrayList class. ... // Java program to demonstrate conversion of // Array to ArrayList of fixed-size. import java.util.*; class GFG { public static void main (String[] args) { String[] geeks = {"Rahul", "Utkarsh", "Shubham", "Neelam"}; // Conversion of array to ArrayList // using Arrays.asList List al = Arrays.asList(geeks); System.out.println(al); } }
🌐
Vultr
docs.vultr.com › java › standard library › java › util › arraylist › tostring()
Java ArrayList toString() - Convert To String
November 19, 2024 - Call the toString() method to convert the list into a string. ... import java.util.ArrayList; ArrayList<String> colors = new ArrayList<>(); colors.add("Red"); colors.add("Green"); colors.add("Blue"); String result = colors.toString(); ...
🌐
BeginnersBook
beginnersbook.com › 2015 › 05 › java-string-to-arraylist-conversion
Java – How to Convert a String to ArrayList
September 20, 2022 - We are splitting the string based on comma (,) as delimiter to get substrings. These substrings are assigned to ArrayList as elements. import java.util.ArrayList; import java.util.List; import java.util.Arrays; public class JavaExample { public static void main(String args[]){ String num = "22,33,44,55,66,77"; String str[] = num.split(","); List<String> al = new ArrayList<String>(); al = Arrays.asList(str); for(String s: al){ System.out.println(s); } } }