List: lastIndexOf(Object o)
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] a) {
List list = Arrays.asList(new String[] { "A", "B", "C", "D" });
System.out.println(list.lastIndexOf("A"));
}
}
Related examples in the same category