Choose correct purpose of indexOf() in String class. *returns the index (the position) of the last occurrence
Fantastic news! We've Found the answer you've been seeking!
Question:
Choose correct purpose of indexOf() in String class. *returns the index (the position) of the last occurrence of a specified text in a stringreturns the character of the first occurrence of a specified character in a stringreturns the index (the position) of the first occurrence of a specified text in a string (excluding whitespace)returns the index (the position) of the first occurrence of a specified text in a string (including whitespace)
Posted Date: