title: how to find in java string case incesitive number of word java
body: <p>skdoakdoakdoakdpoakdpoakdopkapodkoapdkpoakdpoakdpakpdkapdkpaodkpakdpakdpakdpkpdkadpkapdkpaooooooooooooooooooooooooooooooooooooooooooooooooooo
  dksaodaodddddddddddddddddddddddddddddddddddsdkaopdkpadpaokdakdopakdpakpda
  dksaopdoapkdpakdpoakdpokdkapodpadpakdpoakdopakdopkpoakdpapdkapdpada
  kdposaodpadpakdopakdpoakdpokpdkpakdopadkpakdkdkpadkakdpakdp</p>
  
  <pre><code>       String test1 = "java java java. JAVA! ";
         String test2 = "h w !!! ...";
         String word ="java";
         int count = 0;
  
        String strArray[] = test2.split(" ");
  
        for(int i=0; i &lt; strArray.length; i++){
              if (word.equals("java")) {
                  `enter code here`   
                   count++;
              }            
              System.out.println(strArray[i]);
        }
  
      System.out.println(count);
      test1.toUpperCase() + test1.toLowerCase().concat;
      count++;
      test1.toLowerCase();
      count++;
      System.out.println(count);
  </code></pre>
  
  <p>how to return the occurrences in java case insensitive in java i would been trolling the internet but no luck. In JavaScript i would use are but here i am new so please help. So i need to find as above suggested how many times java case insensitive occurs </p>