code: public DecisionTree[] getTrees() {
          DecisionTree[] forest = new DecisionTree[trees.size()];
          for (int i = 0; i < forest.length; i++)
              forest[i] = trees.get(i).tree;
  
          return forest;
      }
docs: Returns the decision trees.