string.find in kotlin code example
Example 1: kotlin element at index in string
val hello = "Hello World"
// Using get() function
val W = hello.get(6)
// Using indexing
val e = hello[1]
Example 2: kotlin substring in string
val name = "James Smith"
// contains() returns true if 'James is in
// string name and false otherwise
val isSubstring = name.contains("James")