Here you can find the source of lastIndexOfAny(final String delimiters, final String str)
public static int lastIndexOfAny(final String delimiters, final String str)
//package com.java2s; /*// ww w . jav a 2 s . c om * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You should have received a copy of the license along with this library. * You may also obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0. */ public class Main { public static int lastIndexOfAny(final String delimiters, final String str) { for (int i = str.length() - 1; i >= 0; --i) { if (delimiters.indexOf(str.charAt(i)) >= 0) { return i; } } return -1; } }