0
    for (Enumeration e = root.preorderEnumeration(); e.hasMoreElements() && theNode == null;) {
        DefaultMutableTreeNode node = (DefaultMutableTreeNode) e.nextElement();

    }

上記の例では、木の枝の深さをどのように確認できますか? 兄弟を反復処理している場合、そのインデックスをどのように取得しますか?

4

1 に答える 1