The following sections describe the 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 shown here include only the most interesting and important details that are needed to solve the 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
78. Simple var example
Starting with version 10, Java comes with JEP 286, or Java LVTI, also known as the var type.
The var identifier is not a Java keyword, it is a reserved type name.
This is a 100% compile feature with no side effects in terms of bytecode...