String indexOf(String str, int fromIndex)

In this section, you will get the detailed explanation about the indexOf(String str, int fromIndex) method of String class.