jdk5的特性 用来处理数组中的每个元素,而不必为指定的下标分心。 for(Type variable:collection){ } 方式简洁,不易出错,性能高 技能用于集合输出,ReadOnly!!!