title: how to allow spaces in input java
body: <p>I'm new to Java so this is a very basic question. I get and error when entering a name with spaces.  What do I need to change please?  steering me to info is great too.</p>
  
  <p>how do I allow input with spaces.</p>
  
  <pre><code>import java.util.Scanner;
  
      public class yes {
  
          public static void main(String[] args) {
          Name = in.next();
          ....
        }
    }
  </code></pre>