2 ms·Java 10 only has type inference for method-scoped vars.by cutler 8y agoJava 10 only has type inference for method-scoped vars.pjmlp 8y agoJava 11 is around the corner and has improved upon it.