Reading integers from a line
<p>I'm  trying to read two integers on the same line. </p>

<pre><code>Scanner a=new Scanner(System.in);
x=a.nextInt();
y=a.nextInt();
</code></pre>

<p>Now, if I input </p>

<blockquote>
  <p>3 4<br /> 3 4</p>
</blockquote>

<p>x = 3 and y = 3. I even tried using a.useDelimiter("\\s") but it doesn't work.</p>
