convert string array to arraylist
In this article, we will learn how to convert string array into an arraylist. In the previous article we have seen how to convert arraylist to string array.
In the code given below, we declare a string array and assign values to each element in the array.
Next, we create a new arraylist of type string. We use AddRange method we can convert string array to an arraylist. We need to pass the array to the AddRange method as a parameter as shown in the code given below.