Answers for "kotlin last element of array"

1

last element of an array kotlin

myList.last()
Posted by: Guest on June-22-2020
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