title: Java scanner object skipping lines?
body: <p>So its been awhile since I've really written anything console based for java, </p>
  
  <p>I have this method, below, which should be asking me for each line, right? Instead, I get one prompt, then three.. What did I do wrong herer?</p>
  
  <pre><code>        try {
  
          System.out.println("Please enter the product's LONG details: ");
          product.setLongDetails(sc.next()); //set products long details
  
          System.out.println("Please enter the product's SHORT details: ");
          product.setShortDetails(sc.next()); //set short details
  
          System.out.println("Please enter the product's UPC data: ");
          product.setUpc(sc.next()); //set upc
  
          System.out.println("Please enter the product's stock: ");
          product.setStock(sc.nextInt());
  
          System.out.println("Please enter the products price. ");
          System.out.println("This MUST be entered with no dollar sign.");
          product.setPrice(sc.nextBigDecimal());
  
          InventoryManager.addProduct(product); //add product to database
  
      }
  </code></pre>
  
  <p>My console is outputting like this: </p>
  
  <pre><code>Please enter the product's LONG details: 
  Fireplace Cleaning Package
  Please enter the product's SHORT details: 
  Please enter the product's UPC data: 
  Please enter the product's stock: 
  BUILD STOPPED (total time: 3 minutes 5 seconds)
  </code></pre>
  
  <p>The scanner is initialized just inside the class declaration as:</p>
  
  <pre><code>public static Scanner sc = new Scanner(System.in); //class level scanner object for reuse.
  </code></pre>
  
  <p>If I call sc.nextLine() between each objects set method, it prompts correctly but gets the wrong information: </p>
  
  <pre><code>Please enter the product's SHORT details: 
  Fire Poker
  </code></pre>
  
  <p>Displays the object as: 
  Please enter your selection:
      <code>Fire</code></p>