title: how to read a long value from standard input in java?
body: <p>i am using <code>util.Scanner</code> to read input from the user. I don't understand how to read a long datatype value.</p>
  
  <pre><code>Scanner scr=new Scanner(System.in);
  long l=scr.nextInt();
  </code></pre>
  
  <p>I am unable to read 64-bit data using the above code &mdash; it just gives me an input mismatch exception.</p>