title: How is the toString method for an array in Java?
body: <p>say you have a string array like this:</p>
  
  <pre><code>String[] someArray = new String[] {"foo", "bar", "bas"};
  </code></pre>
  
  <p>Now I could you this to get a toString representation:</p>
  
  <pre><code>System.out.println(Arrays.toString(someArray));
  </code></pre>
  
  <p>But how would be a custom toString method that returns the same string representation?</p>