Here you can find the source of startsWithIgnoreCase(String str, String prefix)
public static boolean startsWithIgnoreCase(String str, String prefix)
//package com.java2s; //License from project: Apache License public class Main { public static boolean startsWithIgnoreCase(String str, String prefix) { if (str == null || prefix == null) { return false; }// w ww. j a va2 s . com final int len = prefix.length(); if (str.length() < len) { return false; } return str.regionMatches(true, 0, prefix, 0, len); } }