title: I got weird error from Eclipse
body: <pre><code>import java.util.Scanner;
  public class UserInput {
  
    public static void main(String[] args) {
      // TODO Auto-generated method stub
  
          boolean alpha = false;
          boolean numeric = false;
          boolean accepted = true;
          boolean underscore=false;
  
          Scanner s = new Scanner(System.in);
          System.out.println("please Enter an Idintifire: " +s);
              char c = s.next().trim().charAt(0);
              if (Character.isDigit(c))
              {
                numeric = true;
  
              } else if (Character.isLetter(c))
              {
                  alpha = true;
  
              } 
              else if (Character.isUnicodeIdentifierPart(c))
              {
                underscore = true;
              }
              else
              {
                  accepted = false;
  
              }
  
          if (accepted &amp;&amp; alpha &amp;&amp; numeric &amp;&amp; underscore)
          {
              System.out.println("this is an idintifire " +c);
          }
  
          else {
            System.out.println(c+ " this not an idintifire ");
  
          }
          s.close();
         }
      }     
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>please Enter an Idintifire: java.util.Scanner[delimiters=\p{javaWhitespace}+][position=0][match valid=false][need input=false][source closed=false][skipped=false][group separator=\,][decimal separator=\.][positive prefix=][negative prefix=\Q-\E][positive suffix=][negative suffix=][NaN string=\Q?\E][infinity string=\Q?\E]
  </code></pre>
  
  <p>I want the user to enter only a single alphanumeric word; for example, (ab_23) not (ab 23)</p>
  
  <p>Any suggestions?</p>