增强型循环

int [] numbers = {10, 20, 30, 40, 50};

for(int x : numbers ){
System.out.print( x );
System.out.print(",");
}

posted @ 2018-12-21 09:42  ihins  阅读(98)  评论(0编辑  收藏  举报