01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tctest.longrunning;
05:
06: public class Tree {
07: private Tree[] children;
08:
09: public void makeTree(int breadth, int depth) {
10: children = new Tree[breadth];
11: if (depth < 1)
12: return;
13: for (int b = 0; b < breadth; b++) {
14: children[b] = new Tree();
15: children[b].makeTree(breadth, depth - 1);
16: }
17: }
18: }
|