Updating spelling mistake

This commit is contained in:
Niket Agrawal 2023-09-28 11:14:33 +05:30
parent 5bc91182a5
commit 20d6dbaef3
1 changed files with 2 additions and 2 deletions

View File

@ -31,10 +31,10 @@ public class AlternativeMultipeTypeList {
// List via Functional Interface
List<Object> dataList = new ArrayList<>();
Predicate<Object> myPricate = inputData -> (inputData instanceof String || inputData instanceof Integer);
Predicate<Object> myPredicate = inputData -> (inputData instanceof String || inputData instanceof Integer);
UserFunctionalInterface myInterface = (listObj, data) -> {
if (myPricate.test(data))
if (myPredicate.test(data))
listObj.add(data);
else
System.out.println("Skipping input as data not allowed for class: " + data.getClass()