Is there any way to convert from toString back to the object in Java?
For example:
Map myMap = new HashMap
No there isn't.
toString() is only intended for logging and debug purposes. It is not intended for serialising the stat of an Object.