Java中的数组问题
java.util.Arrays
This class deals with 'real' arrays in java, in the form of T[]. Thus it doesn't deal with ArrayList<T>, java.util.Collections deals with this one.
How to print an array in Java?
For T[], use java.util.Arrays.toString()
For ArrayList<T>, use list.toString()