title: Java: .nextLine() and .nextDouble() differences
body: <p>I was reading the API for Java because I had a question on the difference between <code>.nextLine()</code> and <code>.nextDouble()</code>.  In the API, it says this for <code>.nextLine()</code>:</p>
  
  <blockquote>
    <p>"Advances this scanner past the current line and returns the input that was skipped. This method returns the rest of the current line, excluding any line separator at the end. The position is set to the beginning of the next line."</p>
  </blockquote>
  
  <p>Easy enough...it skips the current line you are on and then returns the line you just skipped.  But for <code>.nextDouble()</code>, it says this:</p>
  
  <blockquote>
    <p>"Scans the next token of the input as a double. This method will throw InputMismatchException if the next token cannot be translated into a valid double value. If the translation is successful, the scanner advances past the input that matched."</p>
  </blockquote>
  
  <p>So does this mean that <code>.nextDouble()</code> does not skip to a new line and that it only reads until the end of the double and then stops at the end of the line?  This would help me in understanding a program I'm working on now.  Thanks guys and gals!</p>