I have seen various comparisons that you can do with the charAt()
method.
However, I can't really understand a few of them.
String str = "asdf";
str.charAt(0) == '-'; // What does it mean when it's equal to '-'?
char c = '3';
if (c < '9') // How are char variables compared with the `<` operator?
Any help would be appreciated.
<
operator?" primitivechar
is a numeric type and can therfor compared with>
or<
– Belleslettres