Hello guys, if you are wondering how to convert an ArrayList of objects to an array of Object in Java then you have come at the right place. In this article, I will show you a couple of ways to convert an ArrayList to Array in Java. For example, you can start with creating a new array and then copying elements from ArrayList to array, or you can also use use Stream to go through all elements of ArrayList and then collect result in an array. In this example, we will use Arrays.copyOf() method to convert a given ArrayList to array in Java. This method can be used to convert any ArrayList like ArrayList of Integer, String or any custom object to Array in Java. Converting String ArrayList into String array is very common programming task in Java. you often need to convert Array to Array List in Java and vice-versa. In this Java program, we will How to convert String ArrayList to String array. This is also a common programming exercise which is asked too many Java programmers in various Java related courses. It’s also worth noting that ArrayList in Java is internally backed by array and Array in Java are objects much like String which is also an Object in Java. In this Java program, we first create an ArrayList which stores name of months as String e.g. Jan, Feb, and Mar. Later we use ArrayList toArray() method to convert ArrayList into an array. How to convert String ArrayList to Array in Java? Example Here is full code example of Java test program which convert String ArrayList to String Array in Java. In this Java program we first create an ArrayList which stores name of month in String format and then we convert that into an String array. Java Program to convert an ArrayList of String to an Array package arrayListEx; import java.util.ArrayList; import java.util.Arrays; public class ArrayListtoArray { public static void main(String args[]){ //ArrayList containing string objects ArrayList