Snyk - Local Type Inference Cheat Sheet for Java 10 and beyond!

#artificialintelligence 

Welcome to the first in a new series of cheat sheets that we'll be running on the Snyk blog. We'll be providing content for you to print and pin up to help you be a better developer. In our first edition and hot on the heels on Java 10, we'll be focusing on the much talked about type inference for local variables. The main premise behind the local type inference feature is pretty simple. Replace the explicit type in the declaration with the new reserved type name'var' and its type will be inferred.