title: How to print Array content as String in Java?
body: <p>How can the <code>Array</code> content be converted to a <code>String</code> in Java?</p>
  
  <p>Example:</p>
  
  <pre><code>int[] myArray = {1,2,3};
  </code></pre>
  
  <p>The output has to be:</p>
  
  <pre><code>"123"
  </code></pre>
  
  <p><code>Arrays.toString(myArray)</code> is returning:</p>
  
  <pre><code>"[1, 2, 3]"
  </code></pre>
  
  <p>and <code>myArray.toString()</code>, returns:</p>
  
  <pre><code>[I@12a3a380
  </code></pre>
  
  <p>So none of them works. Is there a function for this?</p>
  
  <p>This question might look similar to <a href="https://stackoverflow.com/questions/409784/whats-the-simplest-way-to-print-a-java-array">(this)</a>, but is actually different. I am literally asking for a <code>String</code> made of all the array entries.</p>