title: Java Input Needed Twice - I parsed an integer so I could use scanner.next();
body: <pre><code>public static void main(String[] args) {
  
      Scanner scanner = new Scanner(System.in);
  
      // printing menu 
      System.out.println(menu);
      boolean quit = false;
      int selection;
      do {
          // next user input (of integer type) will be stored in the variable selection
          selection = Integer.parseInt(scanner.next());
          switch (selection) {
              case 1:
                  System.out.println(&quot;Please enter a new record as John Michael West Doe, 574 Pole ave, St. Peter, MO, 63303, 3142752000&quot;);
  
                  scanner.useDelimiter(&quot;,&quot;);
  
                  Person[] people = new Person[0];
  
                  while (scanner.hasNext()) {
                      String fullName = scanner.next();
                      String street = scanner.next();
                      String city = scanner.next();
                      String state = scanner.next();
                      String zipC = scanner.next();
                      String phoneN = scanner.next();
  
                      System.out.println(fullName);
                  }
  
                  break;
              case 2:
                  // method to delete record - remove 
                  break;
              case 3:
                  // search by telephone number
                  break;
              case 4:
                  // find record by first name
                  break;
              case 5:
                  // find record by last name
                  break;
              case 6:
                  // update a record 
                  break;
              case 7:
                  quit = true;
                  break;
              default:
                  System.out.println(&quot;Invalid&quot;);
          }
      } while (selection != 7);
  }
  </code></pre>
  <p>Hi, I'm currently working on case 1 - my problem is that I have to input the code twice for it to accept it and print out the fullName string..</p>
  <p>Even at the beginning, when I make a selection and press 1 and enter, I have to type another key before the 'please enter a new record.....' line pops up.</p>
  <p>I had just learned about what nextInt does and how it leaves a new line, so I parsed it in order to use scanner.next();</p>
  <p>I'm just trying to see where the hang up is.</p>
  <p>Thank you.</p>