title: Java- How to parse and input and store its values into 'int' variables
body: <p>Sorry if this is an obvious question, but i am new to java and not sure how to do it. I tried looking it up online but couldn't really understand what they were talking about. I want to accept an user input for example a date "2014 02 22 21 14". Note that the spaces separate each variable to be stored. </p>
  
  <p>I want to parse that and store the 2014 into a INT variable called year and then store the 02 into a INT variable called month and 22 stored into the day INT variable.</p>
  
  <p>Could someone please show me an example of how to do this it would be great.</p>