int [] numbers = {10, 20, 30, 40, 50};
for(int x : numbers ){
System.out.print( x );
System.out.print(",");
}
增强型循环
猜你喜欢
转载自www.cnblogs.com/ihins/p/10153899.html
今日推荐
周排行