Create a Java class:
package com.rsk.java;
import org.jetbrains.annotations.Nullable;
public class Person {
private String name;
private int age;
private Person partner;
public St...
Create a Kotlin class:
package com.rsk.kotlin
class Meeting(val title: String) {
// in Java, you can use getLocation and setLocation
var location = ""
// you cannnot directly use m.desc...
/** * We declare a package-level function main which returns Unit and takes * an Array of strings as a parameter. Note that semicolons are optional. */fun main(args: Array<String>...
package com.rsk
class Customer (val name: String, val address: String, var age: Int) {
// if we don't want to pass in the address
constructor(name: String, age: Int) : this(name, "", age) /...
Kotlin vs Java: Will Kotlin Replace Java?
An article mained to describe all the main beauties of the two languages for Android mobile development - Kotlin and Java respectively.The article d...