for each loop in java release date code example Example: how to do for each in java for(int i : alist) { i+=1 }