📄 printwordtree.java
字号:
public class PrintWordTree
{
public static void inorder(LinkedBinaryTree bt, Position po)
{
if (bt.isInternal(po))
{
inorder(bt, bt.leftChild(po));
System.out.print("Total number of instances of "+((Item)(po.element())).key());
System.out.println(" = "+ ((Item)(po.element())).element());
inorder(bt, bt.rightChild(po));
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -