title: How to take a scanner object and make it a String
body: <p>I need help doing the following:</p>
  
  <ol>
  <li>receiving input using Scanner class (I got this)</li>
  <li>taking input from scanner and making it a String</li>
  <li>use <code>replaceAll</code> to remove numbers 0-9 from user input.</li>
  </ol>
  
  <p>The below code is what I have so far but it is only returning user input and not removing numbers:</p>
  
  <pre><code>public static void main(String[] args) {
  
      Scanner firstname = new Scanner(System.in);
      System.out.println("Please enter your first name:");
      String firstname1 = firstname.next();
      firstname1.replaceAll("[^0-9]","");
      System.out.println(firstname1);
  </code></pre>
  
  <p>Updated Code.  Thank you Hovercraft. I am now investigating how to retrieve all alpha characters as with the code below, I am only getting back the letters prior to the numeric values entered by the user:</p>
  
  <pre><code>import java.util.Scanner;    
  
  public class Assignment2_A {
  
      public static void main(String[] args) {
  
          Scanner firstname = new Scanner(System.in);
          System.out.println("Please enter your first name:");
          String firstname1 = firstname.next();
          firstname1 = firstname1.replaceAll("[^A-Z]","");
          System.out.println(firstname1);
  </code></pre>