title: How do I check if a character is neither a letter nor a digit in Java?
body: <p>So I'm writing some code in Java and I'm trying to find out if there is a way to write a line of code that checks if a character in a string is neither a letter nor a digit. I know that:</p>
  
  <p><code>Character.isDigit()</code> checks for a number</p>
  
  <p>and</p>
  
  <p><code>Character.isLetter()</code> checks for a letter.</p>
  
  <p>But I want to know if it is possible for java to check if neither of these are present in a single line of code. Like if the character is "/" or "*" or even "_" in the string.</p>
  
  <p>I'm very new to Java so I'm not sure where to go at this point. </p>