In C # there is the method contains
of System.Linq that searches for text in a list, did the tests in Java and did not find a similar form even knowing that in Java 8 has expression, is there any way to do this with expression in Java?
Example:
ArrayList<String> strListas = new ArrayList<>();
strListas.add("Paulo");
strListas.add("Adriano");
strListas.add("Paula");
strListas.Contains("Pa");
Result:
Paulo e Paula