title: Printing an array in JOptionPane
body: <pre><code>public String show(int[] row)
      {
          for(int i = 0; i &lt; row.length; i++)
          {
              JOptionPane.showMessageDialog(null, row[i]);
          }
      }
  </code></pre>
  
  <p>What is wrong with this code?
  I just want to print an array which is given in the parameter.</p>