Skip to content
loading...

re: Convert ArrayList<String>() To Stirng[] Array in Android VIEW POST

FULL DISCUSSION
 

Isn't it more performant to use the buildin method toArray(). So the code would be:

List<String> list = new ArrayList<>();
// add some data
String[] starr = list.toArray(new String[0]);
code of conduct - report abuse