// Source code example for "A Practical Introduction // to Data Structures and Algorithm Analysis" // by Clifford A. Shaffer, Prentice Hall, 1998. // Copyright 1998 by Clifford A. Shaffer import java.io.*; // Driver class for basic equivalence class testing public class UFmain { // Main routine for equivalence class testing public static void main(String args[]) throws IOException { GenTree it = new GenTree(10); // Do some equivalences it.UNION(1, 2); it.UNION(3, 4); it.UNION(6, 5); it.UNION(4, 1); System.out.println("Print out the list"); it.print(); System.in.read(); } }