title: How do I make my string comparison case-insensitive?
body: <p>I created a Java program to compare two strings:</p>
  <pre><code>String str = &quot;Hello&quot;;
  
  if (str.equals(&quot;hello&quot;)) {
      System.out.println(&quot;match&quot;);
  } else {
      System.out.println(&quot;no match&quot;);
  }
  </code></pre>
  <p>It's case-sensitive. How can I change it so that it's not?</p>