Char type is actually a 16-bit integer, so you can compare them if you want:
Double left = 'B'; // <- 66.0
Char right = 'A'; // <- it 16-bit int == 65 in fact
if (left > right) {...}
However, there is one problem: you should not use ==or !=without tolerance, as Doublewell as other types of floating point have a rounding error, therefore
Double left = 66;
maybe actually 66.000000000002or 65.9999999999998. Something like that:
Double left = 'B';
Char right = 'A';
if (Math.Abs(left - right) < 0.1) {...}
source
share