indexOf() method returns the index within the calling String object of the first occurrence of the specified value, or −1 if not found.