 Hi again, in this lesson, we're going to talk about that, how to find the first instance of substring in a string. First, let's make a string, let's call it myString, and let's populate it with some text. For example, let's say Ottawa is the capital city of Canada. Okay, now, for example, we want to check if our string has substring is. In order to do that, first, let's count the index of first appearance of our substring is in this string. All has index 0, t has index 1, next t has index 2, a has index 3 and so on. So, the first index of our substring is begins at 7. So, if our method finds our substring, it will return to us the index of first appearance of our substring. Let's check that. First, let's use our function myString, and let's call upon it methodFind, and inside our method as an argument, we'll put our substring is. And if our string contains this substring, it will return the index of first appearance of our substring. Obviously, our string contains substring is, and is begins at position 7, so the returning value of our method find is 7. That's all in this video. See you in the next video. Bye-bye.