title: Can you compare chars with ==?
body: <p>For Strings you have to use equals to compare them, because == only compares the references.</p>
  
  <p>Does it give the expected result if I compare chars with == ?</p>
  
  <hr>
  
  <p>I have seen similar questions on stackoverflow, E.g.</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/7520432/what-is-the-difference-between-vs-equals-in-java">What is the difference between == vs equals() in Java?</a></li>
  </ul>
  
  <p>However, I haven't seen one that asks about using == on chars.</p>