https://www.infoq.com/articles/java-10-var-type/
And by the way, var is not a real keyword. You can still use var as a variable name:
Try:
Code: Select all
import java.util.*;
public class Main {
public static void main(String args[]) {
var var = 10;
System.out.println(var);
}
}