kotlin static method
class Foo { companion object { fun a() : Int = 1 } } Foo.a()
Source: stackoverflow.com
static in kotlin
class Foo { companion object { fun a() : Int = 1 } }
Source: stackoverflow.com
calling java static method in kotlin
//Java class public class Foo { //static Method public static void printFoo() { System.out.println("foo"); } } // calling Java static method in Kotlin fun main(args: Array<String>) { Foo.printFoo() }