Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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()
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #calling #java #static #method #kotlin
ADD COMMENT
Topic
Name
8+4 =