question: public static EventBean [ ] resizeArray ( EventBean [ ] oldArray , int newSize ) { if ( oldArray == null ) { return null ; } if ( oldArray . length == newSize ) { return oldArray ; } EventBean [ ] newArray = new EventBean [ newSize ] ; int preserveLength = Math . min ( oldArray . length , newSize ) ; if ( preserveLength > 0 ) { System . arraycopy ( oldArray , 0 , newArray , 0 , preserveLength ) ; } return newArray ; }
target:  Resizes an array of events to a new size. <p> Returns the same array reference if the size is the same.