0
的問題是,它說是標識符,但我不知道什麼期望我得到「<identifier>預計」對於我的代碼,我不明白爲什麼我的代碼不工作
public class TTester
{
public static void main(String args[]) // main
{
//the first integer in the tree is used to create the object
BST bstObj = new BST(50); // creating the object
bstObj.addNode(56);
bstObj.addNode(52);
bstObj.addNode(25); //The numbers added
bstObj.addNode(74);
bstObj.addNode(54);
}
bstObj.traverseAndPrint(bstObj.rootNode); // wanting to print the program
}
非常感謝你,猜猜這是一個菜鳥錯誤 – Swazy
@KwameOsei Np :-)如果我的答案有幫助,那麼只需單擊我答案中留下的刻度標記即可接受它。 –