cara membalikkan array di Kotlin
fun main() {
val arr: Array<Int?> = arrayOf(1, 2, 3, 4, 5)
arr. reverse();
println(arr. contentToString())
}
Powerful Partridge
fun main() {
val arr: Array<Int?> = arrayOf(1, 2, 3, 4, 5)
arr. reverse();
println(arr. contentToString())
}