Kotlin

Kotlin is a relative newcomer from JetBrains and Android. It's intended to be an improved version of Java, including Null Safety.

In [ ]:
fun double(x: Int): Int {
    return 2*x
}
val x = 23
In [ ]:
"hello, " + double(3) + x
In [ ]:
val numbers: MutableList<Number> = mutableListOf(1, 4, 3)
val line = Line()
line.setY(numbers)
val plot = Plot()
plot.setTitle("Kotlin Plotting")
plot.add(line)
plot