title: Error "The operator == is undefined for the argument type(s) char, boolean"
body: <p>I'm trying to do this:</p>
  
  <pre><code>System.out.println("Do you want to solve an equation (y/n)?");
  char first = In.getChar();
  boolean y = true;
  boolean n = false;
  
  if(first == y)
    System.out.println("Enter a:");
  
  if(first == n)
    System.out.println("Thanks");
  </code></pre>
  
  <p>Basically, what I'm trying to do is that if I ask the user to solve the equation and the user presses <kbd>y</kbd> (meaning yes), then it will go through the <code>if</code> statement for which <code>y</code> is <code>true</code>; but if the user enters <kbd>n</kbd> (meaning no), then it will say something like "thanks for using the system".</p>
  
  <p>I'm getting the error "The operator == is undefined for the argument type(s) char, boolean".</p>
  
  <p>What am I doing wrong, and how can I fix this?</p>