📅  最后修改于: 2022-03-11 14:52:16.954000             🧑  作者: Mango
for (int i = 0; i < myArray.length; i++) {
System.out.println(myArray[i]);
}
//enhanced loop is:
for (int myValue : myArray) {
System.out.println(myValue);
}