Engineering Full Stack Apps with Java and JavaScript
Identify the valid for loop constructs assuming the following declarations:
Object o = null;
Collection c = //valid collection object.
int[][] ia = //valid array
Select 2 options
A. for(o : c){ }
B. for(final Object o2 :c){ }
C. for(int i : ia) { }
D. for(Iterator it : c.iterator()){ }
E. for(int i : ia[0]){ }