title: How to check if a character is an apostrophe?
body: <p>I need to check if a character is an apostrophe. This is my code so far:</p>
  
  <pre><code>public boolean isWordCharacter(int c) {
  if ((char) c == '\'')
      return true;
  else return Character.isLetter(c);
  }
  </code></pre>
  
  <p>However, it never actually gets into the <code>if ((char) c == '\'')</code> part. Is there something wrong with the way I check it? Thanks!</p>