foreach Java.
for(ObjectType name : iteratable/array){ name.doSomething() }
foreach , . , (Iterator), Object ObjectType. , E.
ArrayList<MyObject> al = getObjects();
for(MyObject obj : al){
System.out.println(obj.toString());
}
:
for(E c : toBeAdded){
if( this.contains(c) ){ continue;}
this.add(c)
stuffAdded = true;
}