Package java.lang
Class Character

Public Method compareTo

int compareTo(Character anotherCharacter)

int compareTo(Object anObject)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

compareTo(Character anotherCharacter) method:

Compares two Characters numerically. Returns the value 0 if the argument is a Character numerically equal to this Character; a value less than 0 if the argument is a Character numerically greater than this Character; and a value greater than 0 if the argument is a Character numerically less than this Character.

compareTo(Object anObject) method:

Compares this Character to another Object. If the Object is a Character, this function behaves like compareTo(Character). Otherwise, it throws a ClassCastException (as Characters are comparable only to other Characters). Returns the value 0 if the argument is a Character numerically equal to this Character; a value less than 0 if the argument is a Character numerically greater than this Character; and a value greater than 0 if the argument is a Character numerically less than this Character.