title: How to split a string array into separate arrays in Java
body: <p>I am trying to split my array into separate arrays. </p>
  
  <p>I have a string of of words. I split the words into an array. Now I am trying to split the array of words into their own separate array. </p>
  
  <p>Example:</p>
  
  <pre><code>string = "This is a string";
  words = [This, is, a, string]
  </code></pre>
  
  <p>I would like my output to be:</p>
  
  <pre><code>[This], [is], [a], [string]
  </code></pre>
  
  <p>Here's what I have so far:</p>
  
  <pre><code>String[] words = string.split(" ");    
  String wordsArray = Arrays.toString(words); 
  System.out.println(wordsArray.split(" ").toString());
  </code></pre>
  
  <p>and this is my output:</p>
  
  <pre><code>[Ljava.lang.String;@63947c6b
  </code></pre>