Gabrielle Linkherz wrote:. . . I always use > for integer, . . .
Do you mean integer or int or Integer? All three are different.
Char
What is a Char? For
chars, you cannot use compareTo because they are primitives. There is no such class as Char in the standard API; maybe you mean Character.