enhanced for loop arraylist java code example
Example: enhanced for loop arraylist
// for(dataType var: myArrayList){
// System.out.println(var);
// }
for(int num: numList){
System.out.println(num);
}
// for(dataType var: myArrayList){
// System.out.println(var);
// }
for(int num: numList){
System.out.println(num);
}