No, there isn’t. You must either explicitly provide the type, or use the var keyword to automatically infer j‘s type (introduced in Java 10).

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top