KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > innig > macker > example > conventions > Main


1 package net.innig.macker.example.conventions;
2
3 import java.io.File JavaDoc;
4
5 public final class Main
6     {
7     public static void main(String JavaDoc[] args)
8         {
9         AlphaTree alpha = new AlphaTree(null, "");
10         FactorialTree fact = new FactorialTree();
11         FileTree file = new FileTree(File.listRoots()[0]);
12         
13         System.out.println("Alpha dump:");
14         DepthFirstDump.dump(alpha, 4, 3, " ");
15         System.out.println();
16         
17         System.out.println("Factorial dump:");
18         DepthFirstDump.dump(fact, 4, 999, " ");
19         System.out.println();
20         
21         System.out.println("File dump:");
22         DepthFirstDump.dump(file, 4, 4, " ");
23         System.out.println();
24         
25         System.out.println("Alpha walk:");
26         RandomWalk.walk(alpha, 30);
27         System.out.println();
28         
29         System.out.println("Factorial walk:");
30         RandomWalk.walk(fact, 30);
31         System.out.println();
32         
33         System.out.println("File walk:");
34         RandomWalk.walk(file, 30);
35         System.out.println();
36         }
37     }
Popular Tags