Use this code for that,

import java.util.Arrays;  
import java.util.List;  
import java.util.ArrayList;  

public class StringArrayTest {

   public static void main(String[] args) {  
      String[] words = {"ace", "boom", "crew", "dog", "eon"};  

      List<String> wordList = Arrays.asList(words);  

      for (String e : wordList) {  
         System.out.println(e);  
      }  
   }  
}
Answer from Lalit Bhudiya on Stack Overflow
๐ŸŒ
Coderanch
coderanch.com โ€บ t โ€บ 40 โ€บ 379449 โ€บ java โ€บ String-array-arraylist
String array to arraylist (Java in General forum at Coderanch)
June 7, 2012 - Ernest's solution: new ArrayList(Arrays.asList(myArray)); copies the content of the array to a new ArrayList. The copy is ofcourse independent of the array, and you can add, remove etc. elements as you like. Janarthan's solution, with Collections.addAll(myList, myStringArray); is essentially the same as Ernest's solution. If you only need read access to the array as if it is a List and you don't want to add or remove elements from the list, then use Garrett's solution. Otherwise use Ernest's or Janarthan's solution. As of Java 8: String [] strings = {"one", "two", "three"}; ...
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ java โ€บ array-to-arraylist-conversion-in-java
Array to ArrayList Conversion in Java - GeeksforGeeks
July 23, 2025 - // Java program to illustrate ... convertUsingAddAll(arr); } } Output ยท [A, B, C, D] From Java 8, with the help of streams we can convert an array to a ArrayList....
๐ŸŒ
Javaprogramto
javaprogramto.com โ€บ 2020 โ€บ 07 โ€บ arrays-to-list-program-to-convert-array-to-list-in-java-8.html
Array to List: Program to convert Array to List in Java 8
August 7, 2020 - package com.javaprogramto.java8.arraytolist; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; public class ArrayToListCollectionsAddAllExample { public static void main(String[] args) { // Example using Collections.addAll(outputList, array); String[] intArray = {"java", "program", "to.com", "is a ", "java portal"}; System.out.println("Array : " + Arrays.toString(intArray)); List<String> list = convertArrayToList(intArray); System.out.println("Converted ArrayList : " + list); } private static <T> List<T> convertArrayToList(T[] array) { Li
๐ŸŒ
TutorialKart
tutorialkart.com โ€บ java โ€บ string-array-to-arraylist-in-java
How to Convert String Array to ArrayList? Examples
July 22, 2026 - Arrays.asList(String[]) returns List<String> with elements of String[] loaded to List<String>. Now, we can make use of ArrayList.addAll(List<String>) that adds elements of List to the ArrayList.
๐ŸŒ
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
September 9, 2026 - The ArrayList constructor ยท The Collections.addAll() method ยท The Java 8+ Stream API ยท 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 ...
๐ŸŒ
Mkyong
mkyong.com โ€บ home โ€บ java โ€บ java โ€“ convert array to arraylist
Java โ€“ Convert Array to ArrayList | mkyong.com
May 2, 2019 - package com.mkyong; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; public class ArrayExample2 { public static void main(String[] args) { String[] str = {"A", "B", "C"}; ArrayList<String> list1 = Stream.of(str).collect(Collectors.toCollection(ArrayList::new)); list1.add("D"); list1.forEach(x -> System.out.println(x)); List<String> list2 = Stream.of(str).collect(Collectors.toList()); list2.add("D"); list2.forEach(x -> System.out.println(x)); } }
๐ŸŒ
Java Knowledge Base
javaknowledgebase.com โ€บ home โ€บ java programming โ€บ how to convert string array to list in java
How to Convert String Array to List in Java | Java 8
August 8, 2026 - List<String> list = new ArrayList<>(Arrays.asList(array)); Java 8 introduced the Stream API, which provides another way to convert an array into a List.
Find elsewhere
๐ŸŒ
BeginnersBook
beginnersbook.com โ€บ 2015 โ€บ 05 โ€บ java-string-to-arraylist-conversion
Java โ€“ How to Convert a String to ArrayList
September 20, 2022 - 2) Create an ArrayList and copy the element of string array to newly created ArrayList using Arrays.asList() method. This method returns a list created based on the elements of the specified array. In this java program, we are converting a comma separated string to arraylist in java.
๐ŸŒ
Sentry
sentry.io โ€บ sentry answers โ€บ java โ€บ create arraylist from array in java
Java Create ArrayList from Array with Arrays.asList | Sentry
September 17, 2026 - The easiest way to convert to an ArrayList is to use the built-in method in the Java Arrays library: Arrays.asList(array).
๐ŸŒ
How to do in Java
howtodoinjava.com โ€บ home โ€บ collections framework โ€บ java arraylist โ€บ convert array to arraylist in java (mutable and unmodifiable)
Convert Array to ArrayList in Java (Mutable and Unmodifiable)
2 weeks ago - The standard way to convert an array to an ArrayList in Java is new ArrayList<>(Arrays.asList(array)), which wraps the array in a list view and copies its elements into a new list.
๐ŸŒ
Java Code Geeks
examples.javacodegeeks.com โ€บ home โ€บ java development โ€บ core java
Java 8 Convert an Array to List Example - Java Code Geeks
February 25, 2019 - Java 8โ€™s Arrays class provides a stream() method which has overloaded versions accepting both primitive arrays and Object arrays.
๐ŸŒ
Javaprogramto
javaprogramto.com โ€บ 2020 โ€บ 08 โ€บ how-to-convert-arraylist-to-string-in-java.html
How To Convert ArrayList To String Array In Java 8 - toArray() Example
August 13, 2020 - A quick guide on how to convert ArrayList to String[] array in Java. How to convert List of Strings into String[] using Java 8 Stream api.
๐ŸŒ
How to do in Java
howtodoinjava.com โ€บ home โ€บ java array โ€บ convert list to array in java and an array back to a list
Convert List to Array in Java and an Array Back to a List
January 12, 2023 - A List becomes an array in Java through list.toArray(String[]::new) or list.toArray(new String[0]), and an array becomes a List again through Arrays.asList(array), List.of(array) or new ArrayList<>(Arrays.asList(array)), depending on whether ...
๐ŸŒ
YouTube
youtube.com โ€บ watch
Java: Convert Array to ArrayList, and ...
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
๐ŸŒ
Java4s
java4s.com โ€บ how to convert string array to list in java
How to Convert String Array to List in Java
October 23, 2016 - import java.util.Arrays; import java.util.List; public class RemoveNonNumeric { public static void main(String[] args) { String[] str = {"Java4s","Siva"}; List<String> list = Arrays.asList(str); System.out.println(list); } }
๐ŸŒ
Baeldung
baeldung.com โ€บ home โ€บ java โ€บ java array โ€บ how to add string arrays to arraylist in java
How to Add String Arrays to ArrayList in Java | Baeldung
March 7, 2025 - final static String[] ARRAY1 = { "Java", "Kotlin", "Sql", "Javascript" }; final static String[] ARRAY2 = { "C", "C++", "C#", "Typescript" }; final static String[] ARRAY3 = { "Python", "Ruby", "Go", "Rust" }; Also, we have a method to produce a String List with two String elements: List<String> initLanguageList() { List<String> languageList = new ArrayList<>(); languageList.add("Languages"); languageList.add(":"); return languageList; }