Here you can find the source of startsWithOneOf(String str, String... strs)
private static boolean startsWithOneOf(String str, String... strs)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); public class Main { private static boolean startsWithOneOf(String str, String... strs) { for (String t : strs) if (str.startsWith(t)) return true; return false; }//w w w. j av a 2 s . c om }