Computer Science, asked by spoorthidaffodils, 7 months ago

what is int indexOf(char ch).give an example

Answers

Answered by pg673278
0

Answer:

i hope it helps

Explanation:

int indexOf(int ch, int fromIndex) : It returns the index of first occurrence of character ch in the given string after the specified index “fromIndex”. For example, if the indexOf() method is called like this str.

Similar questions