Answers for "kotlin get last item of given type"

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

Browse Popular Code Answers by Language