Q9
Which method is used to find the index of the first occurrence of a specified character in a string in Java?
A.
findIndex()
B.
indexOf()
AnswerC.
search()
D.
findCharacter()
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board