上代码:
package com.wjy;
public class Test { public static void main(String[] args) { int[] attay = new int[5]; for (int i : attay) { System.out.println("it is " + i); }
}}
运行结果:
it is 0it is 0it is 0it is 0it is 0