title: System.out.println repeating itself
body: <p>Would anyone point me in the right direction, of why when i use a for loop the println function comes up two times in the output. Thanks</p>
  
  <pre><code>public static void main(String[] args) {
  
      Scanner scan = new Scanner(System.in);
      System.out.println("Enter the number of employees to calculate:");
      int numberEmployees = scan.nextInt();
  
      for(int i=0; i&lt;numberEmployees; i++){               
              System.out.println("Enter First Name:");
              name = scan.nextLine();
              System.out.println("Enter Last Name:");
              last = scan.nextLine();
              System.out.println("Enter Document #:");
              document = scan.nextInt();
              System.out.println("Enter Basic Salary");
              basicSalary = scan.nextInt();
              System.out.println("Enter # of Hours");
              hours = scan.nextInt();
      }
  }
  </code></pre>
  
  <p><strong>OUTPUT</strong></p>
  
  <pre><code>Enter the number of employees to calculate:
  1
  Enter First Name:
  Enter Last Name:
  daniel
  Enter Document #:
  </code></pre>