@@ -0,0 +1,1320 @@
+package com.fqc.array;%0A%0Aimport sun.text.resources.cldr.rm.FormatData_rm;%0A%0Aimport java.util.Arrays;%0A%0A/**%0A * Created by fqc on 2016/6/30.%0A */%0Apublic class TestArray %7B%0A%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        //testCreateArray();%0A        testMethodOfArray();%0A%0A    %7D%0A%0A    private static void testMethodOfArray() %7B%0A        int%5B%5D arrs = %7B1, 32, 43, 4, 2, 0, 2%7D;%0A        //%E6%95%B0%E7%BB%84%E9%95%BF%E5%BA%A6 %E4%B8%BA%E5%B1%9E%E6%80%A7%0A        System.out.println(%22%E6%95%B0%E7%BB%84%E7%9A%84%E9%95%BF%E5%BA%A6%22 + arrs.length);%0A        //%E6%95%B0%E7%BB%84%E7%9A%84%E9%81%8D%E5%8E%86%0A        for (int i = 0; i %3C arrs.length; i++) %7B%0A            System.out.println(%22arrs.fori%EF%BC%9A%E9%81%8D%E5%8E%86%22 + arrs%5Bi%5D);%0A        %7D%0A        for (int i = arrs.length - 1; i %3E= 0; i--) %7B%0A            System.out.println(%22arrs.forr:%E9%81%8D%E5%8E%86%22 + arrs%5Bi%5D);%0A        %7D%0A        for (int arr : arrs) %7B%0A            System.out.println(%22arrs.for:%E9%81%8D%E5%8E%86%22+arr);%0A        %7D%0A%0A    %7D%0A%0A%0A    /**%0A     * %E6%95%B0%E7%BB%84%E7%94%9F%E6%88%90%E7%9A%84%E4%B8%89%E7%A7%8D%E6%96%B9%E5%BC%8F%0A     */%0A    public static void testCreateArray() %7B%0A        /***%E7%BB%99%E5%87%BA%E5%85%83%E7%B4%A0%E6%95%B0%EF%BC%8C%E5%B0%B1%E4%B8%8D%E8%A6%81%E7%BB%99%E7%A1%AE%E5%AE%9A%E7%9A%84%E5%85%83%E7%B4%A0%E4%BA%86*************/%0A%0A        /***1.%E4%B8%8D%E7%9F%A5%E9%81%93%E5%85%B7%E4%BD%93%E5%85%83%E7%B4%A0%E7%9A%84%E6%97%B6%E5%80%99%EF%BC%8C%E5%8F%AA%E6%98%AF%E5%BD%93%E5%81%9A%E5%AE%B9%E5%99%A8*************/%0A        int%5B%5D array = new int%5B10%5D;%0A        System.out.println(array);%0A        System.out.println(Arrays.toString(array));%0A%0A        /***2.%E6%9C%89%E4%BA%86%E5%AE%B9%E5%99%A8%E5%B9%B6%E5%B7%B2%E7%BB%8F%E8%A3%85%E6%9C%89%E5%85%83%E7%B4%A0%E4%BA%86*************/%0A        int%5B%5D array2 = new int%5B%5D%7B1, 2, 3, 4, 5%7D;%0A        System.out.println(Arrays.toString(array2));%0A%0A        /***3.%E6%9C%80%E7%9B%B4%E6%8E%A5%E4%BA%86%E5%BD%93%E7%9A%84 %E7%9B%B4%E6%8E%A5%E8%A3%85%E5%85%83%E7%B4%A0*********************/%0A        int%5B%5D array3 = %7B1, 2, 3%7D;%0A%0A    %7D%0A%7D%0A

测试生成数组及遍历数组的方式，外加length属性