Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.Iterator; public class Main { public static boolean listContainsIgnoreCase(ArrayList<String> list, String str) { for (Iterator<String> iterator = list.iterator(); iterator.hasNext();) { String string = (String) iterator.next(); if (string.equalsIgnoreCase(str)) return true; } return false; } }