Is there a reliable way to convert any object to a String and then back again to the same Object? I\'ve seen some examples of people converting them using toString()>
toString()>
You can use SerializationUtils from org.apache.commons. It provides the methods serialize and deserialize
org.apache.commons
serialize
deserialize