title: How to split a String array into separate int and String arrays?
body: <p>I have this code that I am trying to sort. Therefore, I want to split my array into one called ages, and the other called names. Here is what I have so far:</p>
  
  <pre><code>    String na = "Jones 14 \nAbrams 15 \nSmith 19 \nJones 9\nAlexander 22\nSmith 20\nSmith 17\nTippurt 42\nJones 2\nHerkman 12\nJones 11";
      String text[] = na.split("\\s+");
  </code></pre>
  
  <p>So far, this only splits the array at whitespace. I want my output to have all the numbers in ages[], and all the words in names[].</p>