How do I find a string in Java?

You can search for a particular letter in a string using the indexOf() method of the String class . This method which returns a position index of a word within the string if found. Otherwise it returns -1.

Sizin İçin Seçtik  What are methods of object class in Java?

Leave a Reply

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