Thursday, April 8, 2010

EnhancedForDemo

package dummy;

class EnhancedForDemo {
public static void main(String[] args){
int[] numbers = {1,2,3,4,5,6,7,8,9,10};
for (int item : numbers) {
System.out.println("Count is: " + item);
}
}
}

No comments:

Post a Comment