title: JAVA: Get 2 values for integer variables from the user in 1 line?
body: <p>I'm trying to figure out if there is a way for the user to enter two values on one line and put each value in a separate variable.</p>
  
  <p>For example, I have an integer variable "x" and an integer variable "y". I prompt the user saying: "Enter the x and y coordinates: ". Lets say the user types: "1 4". How can I scan x=1 and y=4?</p>