We're a place where coders share, stay up-to-date and grow their careers.
It's valid syntax since Java 10. I also think that var is more elegant than full type declaration (it doesn't mean that Java is now dynamically typed).
var
It's valid syntax since Java 10. I also think that
var
is more elegant than full type declaration (it doesn't mean that Java is now dynamically typed).