 <p>As the compiler is trying to tell you, you can't use <code>==</code> to compare a string with a character. The <code>==</code> operator works differently for primitives (such as a <code>char</code>) and reference types (such as a <code>String</code>) so conditions like <code>if(encrypt == 'U')</code> are nonsensical.</p>