Object obj = new Object[3];
if ( obj.getClass().isArray() ) { // 用 getClass().isArray() 判断对象是否是数组 System.out.println( ">>> it's an array " );
}