好的,我有这些接口和类:interface Tree extends Cloneable { int size(); }@Override public int size() {
}private List<Tree> children = new LinkedList<Tree>();
public List<Tree> getChildren() { return Col
struct Population *rc;和物种树完成了我必须要做的是:从物种树中搜索给定的sid (我已经完成了),当您找到它时,在物种树中插入一个新的节点类型struct Population。我不知道如何将“插入新节点到物种树”的部分翻译成代码,我知道如何在BST上插入节点,但这是一种继承树或其他东西,我从未使用过它们。
在一个模板中,我将遍历我的Set<Map> (这是root.getDetails()返回的内容): @detailed.get("key")在使用消息value get is not a member of ?0进行编译时会出现问题。让@detailed单独打印{ key=> blahblah },所以看起来我要检索的密钥确实存在。