class Foo {
companion object {
fun a() : Int = 1
}
}
Foo.a()
//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()
}