title: Scanning a String with a comma
body: <p>I have created a <code>Scanner</code> with <code>system.in</code>.</p>
  
  <p>How do I allow an input to be able to have commas in it without going to the next input?</p>
  
  <p>For example:</p>
  
  <pre><code>System.out.print("Enter City, State.");
  String location = scan.nextLine();
  </code></pre>
  
  <p>I cannot enter <code>city,state</code> because the language thinks I want to proceed to the next scanning input question. How do I allow commas in a scanning string?</p>
  
  <p>*Whole Code</p>
  
  <p><code>Scanner scan1 = new Scanner (System.in);</code></p>
  
  <pre><code>System.out.print ("City, State: ");
  String location1 = scan.nextLine();
  
  System.out.print ("Enter number: ");
  number1 = scan.nextDouble();
  
  System.out.print ("Enter number: ");
  number2 = scan.nextDouble();
  
  System.out.print ("City, State: ");
  String name2 = scan1.nextLine();
  
  System.out.print ("Enter #: ");
  number3 = scan.nextDouble();
  
  System.out.print ("Enter #: ");
  number4 = scan.nextDouble();
  </code></pre>