protected void shuffleTestAndTrainingSetTogether(){
  ArrayList lOverall=new ArrayList(TestFiles.size() + TrainingFiles.size());
  lOverall.addAll(TrainingFiles);
  lOverall.addAll(TestFiles);
  utils.shuffleList(lOverall);
  TestFiles.clear();
  TrainingFiles.clear();
  TestFiles.addAll(lOverall.subList(0,TestFiles.size()));
  TrainingFiles.addAll(lOverall.subList(TestFiles.size(),lOverall.size()));
}

protected void shuffleTestAndTrainingSetTogether ( ) { ArrayList lOverall = new ArrayList ( TestFiles . size ( ) + TrainingFiles . size ( ) ) ; lOverall . addAll ( TrainingFiles ) ; lOverall . addAll ( TestFiles ) ; utils . shuffleList ( lOverall ) ; TestFiles . clear ( ) ; TrainingFiles . clear ( ) ; TestFiles . addAll ( lOverall . subList ( 0 , TestFiles . size ( ) ) ) ; TrainingFiles . addAll ( lOverall . subList ( TestFiles . size ( ) , lOverall . size ( ) ) ) ; }
creates a list containing shuffled test and training instances and then recreates the training and test sets based on this list .
