height


Description:

public int height ()

Gets the height of a Tree.

If the Tree contains no nodes, the height is 0. If the Tree contains only one root node the height is 1. If the root node has children the height is 2, etc.

Parameters:

this

a Tree

Returns:

the height of this