Appeler Kotlin de Java
// Kotlin
class KotlinClass {
val fixed: String = "base.KotlinClass"
var mutable: Boolean = false
}
// Java
KotlinClass kotlinClass = new KotlinClass();
String s = kotlinClass.getFixed(); // Uses getter of ‘val’
kotlinClass.setMutable(true); // Uses setter of ‘var’
boolean b = kotlinClass.getMutable(); // Uses getter of ‘var’
abdullah