I wish to create a method equivalent to the following using Java 8 streams but not able to do this. Can someone guide me here?
public boolean checkCondition(List<String> ruleValues, List<String> inputValues) {
boolean matchFound = false;
for (String ruleValue : ruleValues) {
for (String inputValue : inputValues) {
if (ruleValue.equalsIgnoreCase(inputValue)) {
matchFound = true;
break;
}
}
}
return matchFound;
}