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).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Why do you use "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).