Converting back from toString to Object
Posted
by MontyBongo
on Stack Overflow
See other posts from Stack Overflow
or by MontyBongo
Published on 2010-04-07T21:59:45Z
Indexed on
2010/04/07
22:03 UTC
Read the original article
Hit count: 280
java
Is there any way to covert from toString back to the object in Java?
For example:
Map<String, String> myMap = new HashMap<String, String>();
myMap.put("value1", "test1");
myMap.put("value2", "test2");
String str = myMap.toString();
Is there any way to convert this String back to the Map?
© Stack Overflow or respective owner