W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
val nums = arrayOf(2, 4, 6, 8) if (2 in nums) { println("它存在!") } else { println("它不存在。") }
val
nums
=
arrayOf
(
2
,
4
,
6
,
8
)
if
(
2
in
nums
) {
println
(
"它存在!"
)
}
else
{
println
(
"它不存在。"
)
}