Examveda
Examveda

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

A. str.lastIndexOf(char)

B. str.indexOf(char)

C. str.findLast(char)

D. str.search(char)

Answer: Option A


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings