int[] arr = {1,2,3,4}; //建立一个数组
for(int i : arr){
system.out.println(i); //依次输出1,2,3,4
}
暂无评论,快来抢首评~
相关推荐