code java Word Search wordsearch Wordsearch Java Code 14 Jun, 2021 This example shows how we can search a word within a String object using indexOf method which returns a position index…