Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java compare two lists ignore case

private static boolean equalsIgnoreCase(List<String> list1, List<String> list2) {
        Iterator<String> iterator1 = list1.iterator();
        Iterator<String> iterator2 = list2.iterator();
        while(iterator1.hasNext()) {
            while(iterator2.hasNext()) {
                if(iterator1.next().equalsIgnoreCase(iterator2.next()))
                    return true;
            }
        }
        return false;
    }
Comment

PREVIOUS NEXT
Code Example
Java :: spring value # vs $ 
Java :: java public static void main 
Java :: concurrent modification exception 
Java :: java string multiply 
Java :: Authentication Server with spring, JWT & JPA 
Java :: decimal up to 6 places in java 
Java :: discord jda get message by id 
Java :: java string contains number 
Java :: add value with n variable with Arraylist in java 
Java :: How to efficiently generate all combinations of well-formed parentheses for n pairs of them, in Java? 
Java :: java http request post 
Java :: list extension quarkus 
Java :: jackson create object node from string 
Java :: java read each lines in file 
Java :: int to binary java 
Java :: string to long java 
Java :: spigot remove every entity 
Java :: How to convert timestamp to time in java 
Java :: java get current date without time 
Java :: hibernate select count 
Java :: return day from date in java 
Java :: print to console in java 
Java :: java foreach list 
Java :: string startswith java 
Java :: java date with T 
Java :: Failed to determine a suitable driver class 
Java :: how to convert int to integer in java 
Java :: how to open an activity from a fragment 
Java :: how to initialise array in java without size 
Java :: WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =