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.
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.