The “var” syntax for local variables since Java 10
Java 10, released on March 2018, has introduced the new “var” syntax, a small but useful feature that allows you to declare local variables using the word “var” instead of specifying the type of the variable. This articles is focused on describing all the important rules about this new feature in a clear and concise…