public void addResponse(RecordResponse response){
  if (records == null) {
    records=new RecordResponse[1];
  }
 else {
    RecordResponse old[]=records;
    records=new RecordResponse[old.length + 1];
    System.arraycopy(old,0,records,0,old.length);
  }
  records[records.length - 1]=response;
}

public void addResponse ( RecordResponse response ) { if ( records == null ) { records = new RecordResponse [ 1 ] ; } else { RecordResponse old [ ] = records ; records = new RecordResponse [ old . length + 1 ] ; System . arraycopy ( old , 0 , records , 0 , old . length ) ; } records [ records . length - 1 ] = response ; }
addresponse - - add a new record response .
