Here you can find the source of startsWithIgnoreCase(String str1, String str2)
public static boolean startsWithIgnoreCase(String str1, String str2)
//package com.java2s; public class Main { /** *///ww w .j a v a 2 s .co m public static boolean startsWithIgnoreCase(String str1, String str2) { if (str1.length() >= str2.length()) { return (str1.regionMatches(true, 0, str2, 0, str2.length())); } else { return (false); } } }