File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes how to serialize? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to serialize?" Watch "how to serialize?" New topic

how to serialize?

Vidya Ramachandran

Joined: Nov 04, 2005
Posts: 24
how to serialize a binary tree and a BST and then rebuild the tree?
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1090
Make a class (that provides the Binary Tree functionality) and implement the Serializable interface or Externalizable interface. Use their methods to flatten the Object.
I agree. Here's the link:
subject: how to serialize?
It's not a secret anymore!