One of the problems with expecting too many parameters to be passed to a Java method is that it is more difficult for the client of that method to be determine that they are passing the appropriate ...
In the current series of posts I am writing on reducing the number of parameters required to call Java methods and constructors, I have focused so far on approaches that directly affect the parameters ...
It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.