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.
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.
Could someone please show me an example of how to do this it would be great.