/** Searches for the last index of the specified character. The search for the character starts at the end and moves towards * the beginning. * * @param string the string to find. * @return the index of the specified character, -1 if the character isn't found. * @throws NullPointerException if {@code string} is {@code null}. * @see String#lastIndexOf(java.lang.String) * @since 1.4 */ public int lastIndexOf (String string) { return lastIndexOf(string, length); }
/** Searches for the last index of the specified character. The search for the character starts at the end and moves towards * the beginning. * * @param string the string to find. * @return the index of the specified character, -1 if the character isn't found. * @throws NullPointerException if {@code string} is {@code null}. * @see String#lastIndexOf(java.lang.String) * @since 1.4 */ public int lastIndexOf (String string) { return lastIndexOf(string, length); }
/** Searches for the last index of the specified character. The search for the character starts at the end and moves towards * the beginning. * * @param string the string to find. * @return the index of the specified character, -1 if the character isn't found. * @throws NullPointerException if {@code string} is {@code null}. * @see String#lastIndexOf(java.lang.String) * @since 1.4 */ public int lastIndexOf (String string) { return lastIndexOf(string, length); }