Package java.lang
Class String

Public Method lastIndexOf

int lastIndexOf(int ch)

int lastIndexOf(int ch, int eIdx)

int lastIndexOf(String str)

int lastIndexOf(String str, int eIdx)

_INSERT_METHOD_SIGNATURE_HERE_


Parameters

Description:

lastIndexOf() method:

Returns the index within this string of the first occurrence of the specified character.

lastIndexOf(int ch, int eIdx) method:

Returns the index within this string of the first occurrence of the specified character, searching backward starting at the specified index.

lastIndexOf(String str) method:

Returns the index within this string of the first occurrence of the specified substring.

lastIndexOf(String str, int eIdx) method:

Returns the index within this string of the first occurrence of the specified substring, searching backward starting at the specified index.