how to check if a number is present in array kotlin code example
Example: kotlin check if element in array
// Use the contains() function
var intArray = arrayOf(10, 20, 30, 40, 50)
println(intArray.contains(10))
// Returns true
// Use the contains() function
var intArray = arrayOf(10, 20, 30, 40, 50)
println(intArray.contains(10))
// Returns true