两种方式:
1.if( value instanceof String[] ){}
2.if(value.getClass().isArray() ){}
/**
* Determines if this <code>Class</code> object represents an array class.
*
* @return <code>true</code> if this object represents an array class;
* <code>false</code> otherwise.
* @since JDK1.1
*/
public native boolean isArray();
Java的底层开发库 api 也都是用的第二种方式判断的。成熟,健壮自不必说,推荐用第二种方式!