mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
12 lines
228 B
Plaintext
12 lines
228 B
Plaintext
fun isDigit(a: Int) : String {
|
|
val aa = java.util.ArrayList<Int> ()
|
|
aa.add(239)
|
|
|
|
return when(a) {
|
|
in aa -> "array list"
|
|
in 0..9 -> "digit"
|
|
!in 0..100 -> "not small"
|
|
else -> "something"
|
|
}
|
|
}
|