Answers for "how to check if a string contains something in an array kotlin"

0

kotlin check if element in array

// Use the contains() function

var intArray = arrayOf(10, 20, 30, 40, 50)

println(intArray.contains(10))

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

Code answers related to "how to check if a string contains something in an array kotlin"

Browse Popular Code Answers by Language