title: scanner skipping my nextline() statement in constructor
body: <p>ok so I know after <code>nextInt()</code> if we use <code>nextLine()</code> it will skip it, and to correct that we used extra <code>nextLine()</code> before it to correct it. That's is fine but the problem is i am scanning values in a constructor and i cannot add extra <code>nextLine()</code> in it cuz it gives me error.</p>
  <blockquote>
  <pre><code>product c2=new product(value.nextInt(),value.nextLine(),value.nextDouble());
  </code></pre>
  </blockquote>