title: Scanner doesn't see after space
body: <p>I am writing a program that asks for the person's full name and then takes that input and reverses it (i.e John Doe - Doe, John). I started by trying to just get the input, but it is only getting the first name.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public static void processName(Scanner scanner) {
      System.out.print("Please enter your full name: ");
      String name = scanner.next();
      System.out.print(name);
  }
  </code></pre>