title: How to concat two string arrays in Java
body: <p>I am using JDK 1.7 and Eclipse and trying to concat two string arrays:</p>
  
  <pre><code>String [] a1 = { "a12", "b12" };
  String [] a2 = { "c12", "d23", "ewe", "fdfsd" };
  </code></pre>
  
  <p>I have tried </p>
  
  <pre><code>String[] both = ObjectArrays.concat(a1,a2,String.class); 
  </code></pre>
  
  <p>imported </p>
  
  <pre><code>import com.google.common.collect.ObjectArrays;
  </code></pre>
  
  <p>getting Error:</p>
  
  <pre><code>can not resolve "import com.google.common.collect.ObjectArrays"
  </code></pre>
  
  <p>Can anyone help? I am using Maven to build the project.</p>