Here's another method that we'll recognize: it finds the index of a specific value in a list.

See that? IndexOf () finds the first occurrence of a value and returns its index in the list. If the value isn't in the list, the method returns -1.

Maybe it's a method we've also used with strings?