Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You realize that Java has either released or has in preview most of the Kotlin features? Your example in Java 10+ is:

var foo = "bar"; // you can add final if you feel like it

You could always have multiple classes in a Java file as long as there was only one public class.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: