foreach循环(也称为增强for循环)的语法是:for(Typeitem:collection){//循环体}由于foreach循环内部没有显式的循环控制变量(如i),所以你不能直接使用break或con...