title: Java - make sure each letter does not contain a number
body: <p>Very new to programming, just starting a Java class.
  Here is what the assignment says
  1.) Input, via a question in the console, the report owner’s first name as a string and build the last name via input, one character at a time. 
  a.  Check, conditionally, to make sure the first name and last name don’t contain any numeric characters, numbers between 0 – 9.  If it does you must remove it.  The names can not contain any white space either or special characters.</p>
  
  <p>I already did the first part, and here is my code:</p>
  
  <pre><code>package inclassassignment;
  import java.util.Scanner;
  
  public class inclassassignment {
  
      public static void main(String[] args) {
          // TODO Auto-generated method stub
          System.out.println ("Enter your first name");
          String temp; 
          Scanner your_name = new Scanner (System.in);
          temp = your_name.nextLine();
          System.out.println(temp);
  
  
  
          int n = 0;
          System.out.println ("Enter your last name");
          String temp1;
          temp1 = "";
          while (n &lt; 6) {
  
              System.out.println("Please print the next letter of your last name");
              String nextletter1;
              Scanner lastname = new Scanner (System.in);
              nextletter1 = lastname.nextLine();
              char nextletter = nextletter1.charAt(0);
              temp1 = temp1 + nextletter;
              n++;
  
  
          }
          System.out.println(temp1);
  
          {
  
  
  
          }
      } 
  
  
  }
  </code></pre>
  
  <p>// I now need to do the part that says to check each ASCII value and make sure none of the letters contain a number. I'm pretty sure this requires an "if else" statement but I've never written one to success.</p>
  
  <p>edit: I should point out I am not allowed to have any static variables or methods in any class except for the class with the main method. </p>