Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
for (Enumeration e = root.preorderEnumeration(); e.hasMoreElements() && theNode == null;) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) e.nextElement(); }
上記の例では、木の枝の深さをどのように確認できますか? 兄弟を反復処理している場合、そのインデックスをどのように取得しますか?