posted 19 years ago
"Primitive" types, like byte, char, short, int, long, float, double, and boolean, don't have members or methods and so can't be "dereferenced". (To dereference X just means to write X.something .) You can use the various built-in operators to operate on chars, though. To see if a character is an upper or lower-case A, you would write
if (ch == 'a' || ch == 'A') { ...