This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to serialize?" Watch "how to serialize?" New topic
Author

how to serialize?

Vidya Ramachandran
Greenhorn

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: 1088
Make a class (that provides the Binary Tree functionality) and implement the Serializable interface or Externalizable interface. Use their methods to flatten the Object.
 
Consider Paul's rocket mass heater.
 
subject: how to serialize?
 
Similar Threads
can we serialize images
Serailzable Problem....
Serialize every new entry in a HashMap
small mistake in ExamLab
Working with RDF