Converting a String to all lowercase, without the built in toLowerCase method
<p>how do you convert a <code>String</code> to all lowercase without using the built in <code>toLowerCase</code> method? im trying to write a method that counts all consonants in a <code>String</code> and returns the value. im rather new to java and am trying to get the hang of loops and whatnot.
this is what i have so far:</p>

<pre><code>public static int countConsonants(String s) {
    int numCons = 0;
    for(int i = 1; i &lt;= s.length()-1; i++){
        char n = s.charAt(i);
        switch (n){
            case 

    return numCons;
}
</code></pre>

<p>I was about to add a switch statement to add all of the consonants but im not sure if thats necessary? any help would be appreciated.</p>
