Answers for "How to get the last value of an IntArray in 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 the last value of an IntArray in kotlin?"

Browse Popular Code Answers by Language