I have declared ArrayList like,
var otherSeriesList = ArrayList<String>()
And trying to get data from resource by following,
otherSeriesList = ArrayList<String>(Arrays.asList(resources.getStringArray(R.array.get_other_series)))
But I am getting error. Please see the image-

How should I create ArrayList from resource string-array?
fooyou can dootherSeriesList = arrayListOf(*foo)(note the spread operator*which takes care of passing the array as a vararg).