标签:array
<span style="white-space:pre"> </span>Arrays.toString(arr) for(int n: arr) System.out.println(n+", "); for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + ", "); } System.out.println(Arrays.asList(arr)); Arrays.asList(arr).stream().forEach(s -> System.out.println(s));//java8
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:array
原文地址:http://blog.csdn.net/wufengui1315/article/details/47160311