I suspect you've named the java file as "Node.java" instead of "BinaryTree.java", the code throws error since there isn't any main function in class Node
(that you're trying to run) but in class BinaryTree
. The problem shall resolve if you rename your file to BinaryTree.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…