public static Class [ ] getClasses ( Object [ ] objs ) { Class [ ] cls = new Class [ objs . length ] ; for ( int i = 0 ; i < objs . length ; i ++ ) { if ( objs [ i ] == null ) cls [ i ] = Object . class ; else cls [ i ] = objs [ i ] . getClass ( ) ; } return cls ; }
get all Classes from a Object Array