generic tree implementation in java problems code example Example: how to build a generic tree this is the way of the building of generic tree