/**
* 数组转化成字符串
* <p>
* Returns a string representation of the contents of the specified array.
* If the array contains other arrays as elements, they are converted to
* strings by the {@link Object#toString} method inherited from
* <tt>Object</tt>, which describes their <i>identities</i> rather than
* their contents.
* <p>
* 返回指定数组的字符串,
* 如果数组包含其他数组作为元素,那么这些元素将执行继承自Object的toString方法,getClass().getName() + "@" Integer.toHexString(hashCode())的方式,而不是它们的内容。
*
* <p>
* The value returned by this method is equal to the value that would
* be returned by <tt>Arrays.asList(a).toString()</tt>, unless <tt>a</tt>
* is <tt>null</tt>, in which case <tt>"null"</tt> is returned.
* <p>
* 该方法的返回值将和Arrays.asList(a).toString()方法返回值相同,除非a==null,这时方法的返回值是字符串"null",而后者返回null.
*
* @param a the array whose string representation to return
* @return a string representation of <tt>a</tt>
* @see #deepToString(Object[])
* @since 1.5
*/
public static String toString(Object[] a) {
if (a == null)
return "null";
// 不用length==0来判断空数组,因为下面的代码需要用到length-1
int iMax = a.length - 1;
if (iMax ==