title: Scanning multiple lines using single scanner object
body: <p>I a newbie to java so please don't rate down if this sounds absolute dumb to you</p>
  
  <p>ok how do I enter this using a single scanner object</p>
  
  <blockquote>
    <p>5</p>
    
    <p>hello how do you do</p>
    
    <p>welcome to my world</p>
    
    <p>6 7</p>
  </blockquote>
  
  <p>for those of you who suggest </p>
  
  <pre><code>scannerobj.nextInt-&gt;nextLine-&gt;nextLine-&gt;nextInt-&gt;nextInt,,,
  </code></pre>
  
  <p>check it out, it does not work!!!</p>
  
  <p>thanks</p>