J2SE 5.0 新增foreach的語法,它可以應用於陣列的循序存取上,其語法如下:. for(type element : array) { System.out.println(element).
確定! 回上一頁