Here you can find the source of equalsIgnoreCase(String source, String query)
public static boolean equalsIgnoreCase(String source, String query)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; import java.util.List; public class Main { public static boolean equalsIgnoreCase(String source, String query) { String parsedQuery = query.replace("f/", "").trim(); List<String> strings = Arrays.asList(source.toLowerCase()); return strings.stream().filter(s -> s.contains(parsedQuery.toLowerCase())).count() > 0; }/*from w w w . j a v a 2 s . c o m*/ }