Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}