How do I find a specific word in a string?

The fastest way to check if a string contains a particular word or substring is with the help of String. indexOf() method . This method returns the index of the first occurrence of the specified substring inside the calling String object.

Sizin İçin Seçtik  How can I improve my cable upload speed?

Leave a Reply

Your email address will not be published. Required fields are marked *