SyntaxFix
Write A Post
Hire A Developer
Questions
Continuing from my comment. toString is not the solution. Some good soul has written whole code for serialization and deserialization of an object in Java. See here: http://www.javabeginner.com/uncategorized/java-serialization
toString
Suggested read: