これらのメソッドを使用して、各ノードに名前と電話番号を含む二分探索木を保存および復元する方法を見つけようとしています。
私は非常に迷っており、これを行う方法を教えてください。
'public void save(String fileName) {
// TODO : implement this method.
// save bst to its original shape.
}
public void restore(String fileName) {
// TODO : implement this method.
// restore bst from a file, if file exists.
// do nothing, otherwise.
File fichier = new File(fileName);
if (fichier.exists()) {
}
}'