An Exit Menu using EventHandler The same using Lambda Expressions
Java 8 and Lambda to Search a File
In this example we are going to read from a File and use Lambda expressions to search out and collect every line that contains a .foreach statement. Search Within a File Note that we are also using Java NIO and try-with-resources which makes use of the AutoCloseable interface. Source Code Full source code of a... Continue Reading →
Playing with Lambda Functions
Java8 has introduced Lambda Functions. Whilst this looks a little overwhelming at first, it is a really useful feature. Create our Person POJO Person.java Create an Array of People People Array Print People Pre Java8 Java 8 but we know that p is of type Person because our List is List<Person> Sorting People Pre Java8... Continue Reading →