title: Java Scanner nextLong
body: <p>Stackoverflow, hello.
  I have problem understanding the output to this piece of code</p>
  
  <pre><code>public static void main (String[] args)
  {
      String context = "0100 55 3L 62D 127 6F (int)7";
      Scanner s = new Scanner(context);
      while(s.hasNextLong()) {
          System.out.print(s.nextLong() + ",");
      }
  }
  </code></pre>
  
  <p>The output is <code>100,55,</code>
  but I don't understand why <code>127</code> wasn't included to the output? I mean why the output isn't like <code>100,55,127,</code> ?</p>