xxxxxxxxxx
fun main(args: Array<String>) {
// an arraylist
val list: List<String> = listOf("a", "b", "c", "d", "e")
// converting arraylist to array
val array: Array<String> = list.toTypedArray()
// printing elements of the array
array.forEach { System.out.print(it) }
}