title: How to split scanner input into (Number) (String With Spaces) (Number)
body: <p>Put very simply, the program I'm currently working on requires me to split my scanner input (For example: 2 Ham and Cheese 5.5). It's supposed to read in a grocery order and split it into three arrays   . I'm supposed to use string.split and be able to split this input into three pieces, regardless of spaces in my middle string.</p>
  
  <p><strong>Example Input #1</strong>: 2 Apples 0.9</p>
  
  <p><strong>Example Output #1</strong>: </p>
  
  <p>2</p>
  
  <p>Apples</p>
  
  <p>0.9</p>
  
  <p><strong>Example Input #2</strong>: 2 More Apples 0.9</p>
  
  <p><strong>Example Output #2</strong>:</p>
  
  <p>2</p>
  
  <p>More Apples</p>
  
  <p>0.9</p>
  
  <p>How do I achieve that? Whenever I use string.split to split wherever there is a space, it splits "more" and "apples" when I only need it to split between a number and a string.</p>
  
  <p>Thank you.</p>