title: JOptionPane output text copy
body: <p>I have no experience with <code>JOptionpane</code> but I need a simple program to simplify my life.
  The code I need help with is below:</p>
  
  <pre><code>public static void main (String[] args) {
      String input = "";
  
      input = JOptionPane.showInputDialog("Enter code");
  
      JOptionPane.showMessageDialog(null, toStringU(toArray(input)), "RESULT",
              JOptionPane.INFORMATION_MESSAGE);
  
  }
  </code></pre>
  
  <p><code>toStringU</code> method gives me a long long text</p>
  
  <p>I want to run it without any compiler (a standalone application, double click, put info and take results).</p>
  
  <p>And I cant copy the result from output panel, which I need to copy. So either I need to copy it and/or I want to write it to a txt file (second one would be great).</p>