打印数组 java

        ArrayList<String> anrsList = new ArrayList<String>();

        anrsList.add("dddd");
        anrsList.add("eeee");
        anrsList.add("ffff");
        System.out.println("anrsList:" + anrsList);/* anrsList:[dddd, eeee, ffff] */

        String names[] = { "Georgianna", "Tenn", "Simon", "Tom" };
        System.out.println(Arrays.asList(names)); /* [Georgianna, Tenn, Simon, Tom] */
        System.out.println("Hello World!:" + Arrays.toString(vp));/* Hello World!:[1, 2] */
        System.out.println("Hello World!:" + Arrays.asList(vp).toString());/* Hello World!:[[J@de6ced] */

        long[] vp = new long[] {1, 20};         long[] mSourceVibrate = new long[vp.length];         System.arraycopy(vp,0,mSourceVibrate,0,vp.length);

相关文章
相关标签/搜索