Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to convert string back to object.

807605Jun 15 2007 — edited Jun 15 2007
I used the following code to convert a object to a string.

TestPro tes = new TestPro();
tes.length=20;
tes.breadth=30;
tes.height=40;

String encoded = tes.toString();

At a later point in code,i wish to convert this String back to TestPro Object.

Is it Possible ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 13 2007
Added on Jun 15 2007
24 comments
812 views