@ Deprecated public static int size ( Object [ ] list ) { if ( list == null ) { return 0 ; } int llength = list . length ; for ( int ii = 0 ; ii < llength ; ii ++ ) { if ( list [ ii ] == null ) { return ii ; } } return llength ; }
Returns the number of elements prior to the first null in the supplied list .