编辑代码

object Hello extends App {
    val array =Array(1,2,3,4,5,6) 
    for(a<-array;if a%2==0)  
        println(a) 
}