增强for循环 int [] numbers = {1,2,3,4,5}; for (int i=0; i<5; i++){ System.out.println(numbers[i]); } System.out.println("==================="); //增强for循环,和上面的for循环一样,只是更简单 for(int x: numbers){ System.out.println(x); } 修饰符、返回值