Last occurrence of a character
public class Main { public static void main(String[] argv) throws Exception { String string = "this is another test. a"; int index = string.lastIndexOf('a'); } }
true