public void addAnimation(AnimationObject o){
  AnimationObject[] n=new AnimationObject[animations.length + 1];
  System.arraycopy(animations,0,n,0,animations.length);
  n[animations.length]=o;
  animations=n;
}

public void addAnimation ( AnimationObject o ) { AnimationObject [ ] n = new AnimationObject [ animations . length + 1 ] ; System . arraycopy ( animations , 0 , n , 0 , animations . length ) ; n [ animations . length ] = o ; animations = n ; }
adds an animation object to show using this timeline
