Here you can find the source of startsWithAnyOfThose(final String in, final String[] prefixes)
private static boolean startsWithAnyOfThose(final String in, final String[] prefixes)
//package com.java2s; //License from project: Apache License public class Main { private static boolean startsWithAnyOfThose(final String in, final String[] prefixes) { for (final String prefix : prefixes) { if (in.startsWith(prefix)) { return true; }// w w w. j a v a 2s . c o m } return false; } }