I'm wondering if I can compare a char with 2 values? I'm trying to make a loop that will repeat until some variable is equal to either A, a, B, b, C, or c.
Is there any way to ignore the capitalization?
I tried the following code:
 final char choiceA = 'a'|'A';
 final char choiceB = 'b'|'B';
 final char choiceC = 'c'|'C';
When I tried it it works only when I put a, b or c. If I put a capital letter the loop keeps going on.
 
    