Created
September 11, 2017 16:41
-
-
Save adam-arold/cf6b7c6eb5ff4c9e20476a8a3d7b112c to your computer and use it in GitHub Desktop.
JavaInterop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class JavaInterop { | |
fun helloJava() { | |
KotlinInterop().helloJava() | |
} | |
fun helloKotlin() { | |
println("Hello from Kotlin!") | |
} | |
companion object { | |
@JvmStatic | |
fun createInstance() = JavaInterop() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment