0

So, I try to make a line chart using AAChartModel. I have ArrayList in my code. But in AAchartModel they used an arrayOf instead of ArrayList.

enter image description here

So My Question is, how do I convert from ArrayList to arrayOf ?

1
  • 1
    Either this question is a duplicate of Java ArrayList to Kotlin Array or it is unclear due to misleading usage of class names and types. Commented Aug 4, 2021 at 13:19

1 Answer 1

2

arrayOf() returns just an Array. So you can call arrayList.toTypedArray()

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.