Here you can find the source of startsWithIgnoreCase(String haystack, String pattern)
public static boolean startsWithIgnoreCase(String haystack, String pattern)
//package com.java2s; //License from project: Apache License public class Main { public static boolean startsWithIgnoreCase(String haystack, String pattern) {/* ww w . j a v a 2 s.c om*/ return haystack.substring(0, pattern.length()).equalsIgnoreCase( pattern); } }