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