var keyword in Java

In Java 10, the var keyword allows local variable type inference, which means the type for the local variable will be inferred by the compiler. 
```
var map=new HashMap<String,String>();
var listofMovies=new HashMap<User,List<String>>();
```