title: Ignore space, blanks
body: <p>Does anybody know how i could make scanner ignore space? I wanna type a first and second name, but scanner wont let me, i want to save the full name</p>
  
  <pre><code>String name;
  
  System.out.print("Enter name: ");
  name = scan.next(); //Ex: John Smith
  
  System.out.println(name);
  </code></pre>
  
  <p>Edit:
  New problem.. While using nextLine in my extended program, nextLine just ignores the whole question and moves on without a chance to scan the name. </p>