foreach

1 int arr[] = {2, 3, 1};   
2 for (int x : arr) {   
3     System.out.println(x); 
4 }

 

posted @ 2015-05-19 10:58  okay4321  阅读(84)  评论(0)    收藏  举报