public static boolean startsWithAny ( String _str , String ... _startStrings ) { if ( _str == null || _startStrings == null || _startStrings . length == 0 ) { return false ; } for ( String start : _startStrings ) { if ( _str . startsWith ( start ) ) { return true ; } } return false ; }
Checks if given String starts with any of the other given parameters .