Returns the index within this string of the last occurrence of the specified character. For values of
in the range from 0 to 0xFFFF (inclusive), the index (in Unicode code units) returned is the largest value k
this.charAt(k) == ch
is true. For other values of
, it is the largest value k
this.codePointAt(k) == ch
is true. In either case, if no such character occurs in this string, then
is returned. The
is searched backwards starting at the last character.
@param ch a character (Unicode code point).
@return the index of the last occurrence of the character in thecharacter sequence represented by this object, or
if the character does not occur.