Answers for "how to get last array kotlin"

0

kotlin last element of array

// Use the last() function
var intArray = arrayOf(10, 20, 30, 40, 50)

println(intArray.last())

// Returns 50
Posted by: Guest on October-29-2020

Code answers related to "how to get last array kotlin"

Browse Popular Code Answers by Language