Two simple Java 8 applications with lambdas