Is there any utility function in java which does `String.startsWith` for each element in string array?

For eg: 

```
String[] s = {"ABC", "BBV", "ABCD", "NBHH"};

```

Is there any way to do :

```
array.startsWith("AB");

```

Returns `ABC` and `ABCD`