Java String Last Index Of lastIndexOf(String baseString, String indexString)

Here you can find the source of lastIndexOf(String baseString, String indexString)

Description

last Index Of

License

LGPL

Declaration

public static final int lastIndexOf(String baseString, String indexString) 

Method Source Code

//package com.java2s;
/**/*  ww  w . j  a v  a 2s.c  o m*/
* Converts a line of text into an array of lower case words using a
* BreakIterator.wordInstance().
* <p>
* 
* This method is under the Jive Open Source Software License and was written
* by Mark Imbriaco.
* 
* @param text
*          a String of text to convert into an array of words
* @return text broken up into an array of words.
*/

public class Main {

    public static final int lastIndexOf(String baseString, String indexString) {
        if (baseString == null)
            return -1;
        else
            return baseString.lastIndexOf(indexString);
    }
}

Related

  1. lastIndexOf(CharSequence theChars, CharSequence theSearch)
  2. lastIndexOf(final CharSequence cs, final CharSequence searchChar, final int start)
  3. lastIndexOf(final CharSequence cs, final int searchChar, int start)
  4. lastIndexOf(final String input, final char delim)
  5. lastIndexOf(final String src, final String sub, int startIndex, int endIndex)
  6. lastIndexOf(String input, char ch, int offset)
  7. lastIndexOf(String path, char ch)
  8. lastIndexOf(String s, String sub, int startIndex, int endIndex)
  9. lastIndexOf(String self, String pattern, Integer start)