package weiss.nonstandard; // Basic node stored in unbalanced binary search trees // Note that this class is not accessible outside // of this package. class BinaryNode { // Constructor BinaryNode( AnyType theElement ) { element = theElement; left = right = null; } // Data; accessible by other package routines AnyType element; // The data in the node BinaryNode left; // Left child BinaryNode right; // Right child }