title: combining charAt and IgnoreCase?
body: <p>(Beginner with java here),</p>
  
  <p>I'm making a simple game where the user can type if he wants to play again or not. However, I want the game to keep replaying as long as he types yes, Yes or any combination of yes. So As long as the first letter is <code>y</code> the game continues. Ex)</p>
  
  <p>Game Runs</p>
  
  <pre><code>} while(newGame.charAt (0) == 'y');
  </code></pre>
  
  <p>But I also want java to ignore if it is <code>Y</code> or <code>y</code>, I tried combining <code>charAt(0) == 'y'</code> and IgnoreCase but couldn't figure it out.</p>
  
  <p>I know I could just do <code>&amp;&amp; 'Y'</code>, but seems like it is unnecessary code?</p>
  
  <p>Thanks</p>