Here you can find the source of indexOfIgnoreCase(List
public static int indexOfIgnoreCase(List<String> values, String target)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.util.List; public class Main { public static int indexOfIgnoreCase(List<String> values, String target) { for (int i = 0; i < values.size(); i++) { if (values.get(i).equalsIgnoreCase(target)) { return i; }//w ww. ja va2s.c o m } return -1; } }