mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
24 lines
298 B
Kotlin
24 lines
298 B
Kotlin
import test.*
|
|
import java.util.*
|
|
|
|
|
|
fun sample(): Input {
|
|
return Input("Hello", "World");
|
|
}
|
|
|
|
fun testForEachLine() {
|
|
val list = ArrayList<String>()
|
|
val reader = sample()
|
|
|
|
reader.forEachLine{
|
|
list.add(it)
|
|
}
|
|
}
|
|
|
|
|
|
fun box(): String {
|
|
testForEachLine()
|
|
|
|
return "OK"
|
|
}
|