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;
}

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 ; }
resizes an array of events to a new size . < p > returns the same array reference if the size is the same .
