A find (substring) method is used in order to determine whether a substring is present in a string.
A String may be defined as a data type that is significantly utilized for data values that are constructed up of ordered sequences of characters and functions.
Each string method is utilized for a specific function. For example, the ends with(substring) method is used for the termination of any command or string. A replace (string, substring) is used for substituting the string by substring or vice-versa.
Therefore, a find (substring) method is used in order to determine whether a substring is present in a string.
To learn more about Strings, refer to the link:
https://brainly.com/question/98691
#SPJ4