title: Adding a string array to a list
body: <p>For the <code>add()</code> method how do I add a string array to a list of string arrays?
  E.g:</p>
  
  <pre><code>List&lt;String[]&gt; myList = new ArrayList&lt;String[]&gt;();
  String[] myString = {"foo", "bar"};
  myList.add(new String[](myString)); //does not work
  </code></pre>
  
  <p>EDIT: yes I have tried <code>myList.add(myString)</code> however, only want the value of myString not pass by reference.</p>