Incompatible types (boolean/string)
<p>I'm trying to check if my input is a consonant. However it tells me at the line below that they are incompatible types (boolean vs String)</p>

<pre><code>if (medeklinkerGeraden = medeklinkers [r]) {
</code></pre>

<p>^</p>

<pre><code>public String medeklinkerRaden ()  {
    String medeklinkerGeraden = "";
    boolean bevatMedeklinker = false;
    System.out.println("U mag een medeklinker gokken!");
    medeklinkerGeraden = Input.readString();
    String [] medeklinkers = {"b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "z"};
    do {
        for (int r = 0; r &lt; medeklinkers.length; r++)
            if (medeklinkerGeraden = medeklinkers [r]) {
                bevatMedeklinker = true;
            }

    }
    while (! bevatMedeklinker);

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