Here you can find the source of startsWith(String s, boolean caseIgnore, String... args)
public static boolean startsWith(String s, boolean caseIgnore, String... args)
//package com.java2s; //License from project: Apache License public class Main { public static boolean startsWith(String s, boolean caseIgnore, String... args) {/*from w ww .j av a2 s . co m*/ if (s == null) { return false; } for (String arg : args) { if (caseIgnore) { s = s.toLowerCase(); arg = arg.toLowerCase(); } if (s.startsWith(arg)) { return true; } } return false; } }