public void readExamples(DataRowReader i,boolean permute,Random random){
  dataList.clear();
  while (i.hasNext()) {
    if (permute) {
      if (random == null) {
        random=new Random();
      }
      int index=random.nextInt(dataList.size() + 1);
      dataList.add(index,i.next());
    }
 else {
      dataList.add(i.next());
    }
  }
}

public void readExamples ( DataRowReader i , boolean permute , Random random ) { dataList . clear ( ) ; while ( i . hasNext ( ) ) { if ( permute ) { if ( random == null ) { random = new Random ( ) ; } int index = random . nextInt ( dataList . size ( ) + 1 ) ; dataList . add ( index , i . next ( ) ) ; } else { dataList . add ( i . next ( ) ) ; } } }
reads the examples into memory and permutes the order . removes all old data rows first .
