title: How can we convert a string to a user defined object in java
body: <p>I have created a string  and now I need to convert it into a user defined object. so how it can be done .for eg the <code>String data=" Help me"</code>.
  so this string has to be converted to the object so it can be passed for the given function.
  as i need to pass the object for a function 
  <code>public abstract void add(Treecreat item)</code>;</p>