Here you can find the source of lastIndexOf(String baseString, String indexString)
public static final int lastIndexOf(String baseString, String indexString)
//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); } }