Answers for "how to reverse array in kotlin"

1

how to reverse array in kotlin

fun main() {
val arr: Array<Int?> = arrayOf(1, 2, 3, 4, 5)
arr. reverse();
println(arr. contentToString())
}
Posted by: Guest on October-13-2021

Code answers related to "how to reverse array in kotlin"

Browse Popular Code Answers by Language