title: How to return a String representation of an object in Java
body: <p>I created a shape object in java which has attributes color, corners and name.
  I then have a method create shape that return a Shape object. I have for instance create a circle. What I need to do is return a string of the object for example <code>shape.toString()</code> needs to be:</p>
  
  <pre><code>Circle[c=Blue,cnr=0]:cirleName
  </code></pre>
  
  <p>but I am getting:</p>
  
  <pre><code>com.shape.model.Circle@64fa8cc6
  </code></pre>