kotlin string to array

  1. Use the split() function to convert the Kotlin string to an array.
  2. Pass the delimiter as an argument to the split() function.