1,包级别的函数
All the functions and properties declared in a file example.kt inside a package org.foo.bar, including extension functions, are compiled into static methods of a Java class named or...
1,Kotlin 调用Java
import java.util.*
fun demo(source: List<Int>) {
val list = ArrayList<Int>()
for (item in source) {
list.add(item)
}
for (i in 0..source....