Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.Iterator;
import java.util.List;

public class Main {
    public static List<String> removeIgnoreCase(List<String> l, String s) {
        Iterator<String> iter = l.iterator();
        while (iter.hasNext()) {
            if (iter.next().equalsIgnoreCase(s)) {
                iter.remove();
                break;
            }
        }
        return l;
    }
}