title: How to convert a sub-string into an int from a string
body: <p>I have the following string in java</p>
  
  <pre><code>String str = "1 10 9 2 4 6 3 56 3 4 45 55";
  </code></pre>
  
  <p>I want to substring "1", "2", "3", "4" and so on.... and convert them into an integer array. I tried to find the index of " " spaces for a start and end to substring "1", "2", "3","4" and so on ...., but I was not successful. Please help.</p>