title: Correctly convert String array to String and back in java
body: <p>I have a following code:</p>
  
  <pre><code>String[] stringArray = new String[] { "One,", "Two", "Three" };
  System.out.println(Arrays.toString(stringArray));
  </code></pre>
  
  <p>which produces the following string:</p>
  
  <pre><code>[One,, Two, Three]
  </code></pre>
  
  <p>Right now It is impossible to convert this string back into the same <code>String[]</code> with 3 elements because of two consecutive commas <code>,,</code></p>
  
  <p>How to correctly make this conversion ?</p>
  
  <p><strong>UPDATED</strong></p>
  
  <pre><code>Arrays.toString(stringArray)
  </code></pre>
  
  <p>is just a particular case and I'm not limited to use only this approach. I need to implement approach where conversion from String[] to String and back from String to String[] will be idempotent operation.</p>