Computer Science, asked by dharshininaga2003, 5 months ago

Which of the following method is used to returns the index of first occurrence of the given
substring?
(a)int indexOf(int c)
b) int indexOf(String str)
c)String indexOf(String str) d) Char indexOf(String str)​

Answers

Answered by pappalasusmitha
0

Answer:

The indexOf() method returns the position of the first occurrence of specified character(s) in a string.

Similar questions