The following sections describe solutions to the preceding problems. Remember that there usually isn't a single correct way to solve a particular problem. Also, remember that the explanations that are shown here only include the most interesting and important details that are needed to solve these problems. You can download the example solutions to view additional details and experiment with the programs from https://github.com/PacktPublishing/Java-Coding-Problems.
Solutions
166. Writing functional interfaces
In this solution, we will highlight the purpose and usability of a functional interface in comparison with several alternatives. We will look at how to evolve the code from its basic and rigid implementation to a...