3 ms·
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
by spullara 4y ago
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.