int values[ ] = {1,2,3,4,5,6,7,8,9,10};  
for(int i=0;i Y; ++i)
System.out.println(values[i]);
Output of the following Java snippet

Posted on by