title: Checking for any 3 concecutive consonants
body: <p>I have a code that checks if there are three THE SAME consecutive consonants in a string. It looks like this:</p>
  
  <pre><code>    String cons = "bcdfghjklmnpqrstvwxyz"; 
      char[] consonants = cons.toCharArray();
  
          int z = 0;
          Scanner scan = new Scanner(System.in);
          System.out.println("Enter your word!");
          String word = scan.next().toLowerCase();
          int length = word.length();
          char[] ch = word.toCharArray();
          for (int i = 0; i &lt; length-2; i++) {
              for (int j = 0; j &lt; 21; j++) {
                  if ((ch[i] == consonants[j]) &amp;&amp;
                          (ch[i + 1] == consonants[j])
                          &amp;&amp; (ch[i + 2] == consonants[j])) {
                      z++;
                      break;
                  }
              }
              if (z == 1)
                  break; 
          }
          if (z == 1) {
              System.out.println("Three consecutive consonants here!");
          } else {
              System.out.println("It is fine!");
          }
  </code></pre>
  
  <p>But I would like to check for ANY three consecutive consonants. To find words like - Christmas, country, children, school etc.</p>
  
  <p>And not sure how should I change this code to do it. Can you help?</p>