Java中有三种主要的循环结构: while 循环 do…while 循环 for 循环 在Java5中引入了一种主要用于数组的增强型for循环。 for(type element: array) { System.out.println(element); } 声明语句:……