package Code411;//遍历数组public class CodeArray { public static void main(String[] args) { int[] array ={10,20,30}; int len=array.length;//使用for循环语句 for (int i = 0; i <array.length; i++) { System.out.println(array[i]); } }}↓运行结果