diff --git a/src/test/java/com/ossez/codebank/interview/tests/others/LambdaEvensTest.java b/src/test/java/com/ossez/codebank/interview/tests/others/LambdaEvensTest.java index 3b872b063d..38bdac4519 100644 --- a/src/test/java/com/ossez/codebank/interview/tests/others/LambdaEvensTest.java +++ b/src/test/java/com/ossez/codebank/interview/tests/others/LambdaEvensTest.java @@ -14,36 +14,36 @@ import java.util.List; */ public class LambdaEvensTest { - private final static Logger logger = LoggerFactory.getLogger(LambdaEvensTest.class); + private final static Logger logger = LoggerFactory.getLogger(LambdaEvensTest.class); - /** - * Lambda Function - */ + /** + * Lambda Function + */ - interface Arithmetic { - Long operation(Long a, Long b); - } + interface Arithmetic { + Long operation(Long a, Long b); + } - /** - * https://www.cwiki.us/display/ITCLASSIFICATION/Build+Castles - */ - @Test - public void testLambdaEvents() { + /** + * https://www.cwiki.us/display/ITCLASSIFICATION/Lambda+Evens + */ + @Test + public void testLambdaEvents() { - String line = "1 2 3 4 5 6 "; + String line = "1 2 3 4 5 6 "; - String[] lineArray = line.split(" "); - List numbers = new ArrayList<>(); - Arithmetic division = (Long a, Long b) -> (a % b); + String[] lineArray = line.split(" "); + List numbers = new ArrayList<>(); + Arithmetic division = (Long a, Long b) -> (a % b); - for (String lineChar : lineArray) { - if (division.operation(Long.parseLong(lineChar), 2L) == 0) { - System.out.print(lineChar + " "); + for (String lineChar : lineArray) { + if (division.operation(Long.parseLong(lineChar), 2L) == 0) { + System.out.print(lineChar + " "); // logger.debug(lineChar + " "); - } - } + } + } - } + } } \ No newline at end of file