class foreachLoopTest{ final static int N=2; public static single void main (String [] args){ //Point point; /* can't do this starting from 2.528 !*/ RectDomain rd=[[0,0]:[1,1]]; /* the official declaration of foreach loop since 2.528*/ //foreach (Point point in rd) {System.out.println("point in rd:"+point.toString());} /* the declaration of foreach loop works for the compilers before and after 2.528*/ foreach (point in rd) {System.out.println("point in rd:"+point.toString());} //int i=100; /* can't do this for all the versions!*/ int [] ia=new int [N]; for (int i=0;i