Here you can find the source of startWithIgnoreCase(String str, String prefix)
public static boolean startWithIgnoreCase(String str, String prefix)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean startWithIgnoreCase(String str, String prefix) { if (str.length() < prefix.length()) return false; return prefix.equalsIgnoreCase(str.substring(0, prefix.length())); }/* w w w. j av a2s . c o m*/ }