-
- 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
转载于:https://www.cnblogs.com/tstttos/p/6236918.html