DO NOT BE AFRAID OF USING VAR, use it wisely, use it to reduce verbosity, make code readable and enforce other best practices in naming. Instead of prohibiting its use, let’s use correctly.
Continue readingTag: var
Java – Local variable Type Inference
Let’s review some considerations when using the Local variable type inference Java. It basically allows the developer to use the word var instead of the type when declaring local variables (into methods), the compiler is able to infer the type from the right side of the assignment.
Continue reading