title: How to overwrite Array toString method
body: <p>I want to print the array when <code>arr.toString()</code> is called. How can i do that?</p>
  
  <pre><code> Integer[] arr = new Integer[10];
  
   for(int i = 1; i &lt;= 5; i++) {
       arr[i] = (i);
   }
  
   System.out.println(arr.toString() + " " + arr.length);
  </code></pre>