Tag: java 14

lambda switch case

Lambda Switch Case Challenge

In Java 12 the new switch case with lambda preview feature was introduced which reduces the boilerplate code. In Java 14, this feature became standard. Now instead of using the break keyword in every case statement, we can simply use a lambda...