Check out example codes for "kotlin split string". It will help you in understanding the concepts better.

Code Example 1

val strs = "name, 2012, 2017".split(",").toTypedArray()

Learn ReactJs, React Native from akashmittal.com