Explanation: The forDigit method returns the character equivalent of the fi rst argument in radix that is
specifi ed by second argument. In order to print the character equivalent of digit 10 in hexadecimal number
system 16, the fi rst argument is supplied as 10 and second method takes two parameters: fi rst one is the
character and second one the radix. The method returns the integer equivalent of the character supplied.
The valueOf() method takes a character value and returns the equivalent Character object. The
compareTo methods two Character objects and returns 0 if both are equal.
19.12.6 The Boolean Class
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.