Here you can find the source of startsWithAny(String stringToMatch, String... stringToCheckEquals)
public static boolean startsWithAny(String stringToMatch, String... stringToCheckEquals)
//package com.java2s; //License from project: Apache License public class Main { public static boolean startsWithAny(String stringToMatch, String... stringToCheckEquals) { for (final String candidate : stringToCheckEquals) { if (stringToMatch.startsWith(candidate)) { return true; }//from w ww . ja v a 2 s .c o m } return false; } }