Examveda
Examveda

How do you find the first index of a specified character in a string in Java?

A. str.getFirstIndexOf(char)

B. str.findFirst(char)

C. str.indexFirst(char)

D. str.indexOf(char)

Answer: Option D


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings