title: How to parse string with Java?
body: <p>I am trying to make a simple calculator application that would take a string like this</p>
  
  <pre><code>5 + 4 + 3 - 2 - 10 + 15
  </code></pre>
  
  <p>I need Java to parse this string into an array</p>
  
  <pre><code>{5, +4, +3, -2, -10, +15}
  </code></pre>
  
  <p>Assume the user may enter 0 or more spaces between each number and each operator</p>
  
  <p>I'm new to Java so I'm not entirely sure how to accomplish this.</p>