Please check Calling Kotlin from Java official article. Actually each Kotlin construction can be unwrapped to Java (except inline
function features and couple other).
Actually the coding is the same: add dependency into the project (both Kotlin
and Java
uses jar
files), call methods, etc.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…