The find() method returns the index of the first occurence of a substring in the given string (case-sensitive ). If the substring is not found it returns -1.
The find() method returns the index of the first occurence of a substring in the given string (case-sensitive ). If the substring is not found it returns -1.