is there any way to check if a collection contain a value or more with better performance than looping twice with contains?
in other meaning something that would look like this
person.contains("Joe" || "Jasha");
Simply use Arrays class
person.containsAll(Arrays.asList("Jasha","Joe"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With