title: Adding user input to an arraylist without nextLine
body: <p>I am trying to add user input into an arraylist until someone types "quit". The problem is the .nextLine() method on scanner. It will skip a line so the final ArrayList will only have every other input.</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>public class Question {
  
  static Scanner userInput = new Scanner(System.in);
  static List&lt;String&gt; strings = new ArrayList&lt;String&gt;();
  
  public static void main (String[] args) {
  
      System.out.println("Please enter your strings:");
  
      while(!userInput.nextLine().equals("quit")) {
  
          String v = userInput.nextLine();
          strings.add(v);
  
  
          }
  
      displayList();
  
  
  }
  
  private static void displayList() {
      System.out.println(strings);
  
  }
  
  
  }
  </code></pre>
  
  <p>I have tried using userInput.toString() instead of nextLine() but it is still not working. Is there a way to make it so <strong>every</strong> user input is added to the ArrayList?</p>
  
  <p>Eg. If I enter one two three four quit, the displayed list will be [two, four].</p>
  
  <p>(Another annoying thing that happens is if I type an odd number of strings, I need to type "quit" twice for it to actually quit.</p>