标签:
1 public class WEI { 2 3 public static void main(String[] args) { 4 //创建一维数组arr[],并将其遍历输出。 5 int arr []=new int[]{ 54,65,89,789,231}; 6 7 //用foreach语句 8 9 for(int f : arr ) 10 { 11 System.out.println("输出为:"+f); 12 } 13 14 15 16 17 18 19 } 20 21 }
标签:
原文地址:http://www.cnblogs.com/crazy-zw/p/5115149.html