public static EventBean[] addToArray(EventBean[] array,EventBean eventToAdd){
  EventBean[] newArray=new EventBean[array.length + 1];
  System.arraycopy(array,0,newArray,0,array.length);
  newArray[newArray.length - 1]=eventToAdd;
  return newArray;
}

public static EventBean [ ] addToArray ( EventBean [ ] array , EventBean eventToAdd ) { EventBean [ ] newArray = new EventBean [ array . length + 1 ] ; System . arraycopy ( array , 0 , newArray , 0 , array . length ) ; newArray [ newArray . length - 1 ] = eventToAdd ; return newArray ; }
expand the array passed in by the single element to add .
