title: Using scanner to read numbers with multiple line breaks
body: <p>How can I read the input (numbers) using the <code>java.util.Scanner</code> class when the numbers are separated by any number of line breaks?</p>
  
  <p>An example might be like the following:</p>
  
  <pre><code>23333 
  .
  .
  .
  
  332332
  
  .
  .
  .
  3333
  </code></pre>