编辑代码
Scala代码
2.13.2
运行
object
Hello
extends
App { val
array
=
Array
(
1
,
2
,
3
,
4
,
5
,
6
)
for
(a<-
array
;
if
a%
2
==
0
) println(a) }