title: How to convert a char to a boolean in Java?
body: <p>I would like to display on the screen a question with two options (Are you married: y/n). The user would have to press or "y" or "n". After that I would like to print on the screen "married" or "not-married".</p>
  
  <p>I've thought in using a char to get the input thorough the Scanner class (System.in) and after cast this char to a boolean type in order to display two options with an if statement. The problem is that I don´t know how to cast this char to a boolean type. Does it make sense? Is there other way to do this example in a different way?</p>
  
  <p>Many thanks</p>