Home > Back-end >  How Kotlin converting type String array type
How Kotlin converting type String array type

Time:02-13

Fun (A) : String
{
Val list=listOf (" apple ", "banana", "orange")
Return the list. The toString ()
}

Val obj=(A)
For (list in obj)
{
The d (" Array ", the list. The toString ()
}
Console the information returned is [a p p l e, b a n a n a, o r a n g e]

Seek a solution
  • Related