Computer Science, asked by sharoncherian24, 1 year ago

How to convert array to arraylist in android?

Answers

Answered by MS903
0

You can do the following:

String [] strings = new String [] {"1", "2" }; List<String> stringList = new ArrayList<String>(Arrays.asList(strings)); //new ArrayList is only needed if you absolutely need an ArrayList

Similar questions