title: Java contains() method not working properly
body: <p>I'm writing small condition to check if certain character are exist or not in java. This is my string: May i know how much I spent on food?</p>
  
  <p>I'm checking if food string is exist or not, if i check "food" in if condition I'm getting proper response, if i use "Food" or "fOod" or "fOOd" or "fooD" its always going to else block. What I'm doing wrong here:</p>
  
  <p>String food = "may i know how much I spent on food";</p>
  
  <pre><code>if(food.contains("Food")) {
      System.out.println("Food Expense is 32");
  
  } else {
      System.out.println("Not Matching");
  }
  </code></pre>