Class Chars


  • public final class Chars
    extends Object
    Consider this class private.
    • Method Detail

      • getUpperCaseHex

        public static char getUpperCaseHex​(int digit)
        Converts a digit into an upper-case hexadecimal character or the null character if invalid.
        Parameters:
        digit - a number 0 - 15
        Returns:
        the hex character for that digit or '\0' if invalid
      • getLowerCaseHex

        public static char getLowerCaseHex​(int digit)
        Converts a digit into an lower-case hexadecimal character or the null character if invalid.
        Parameters:
        digit - a number 0 - 15
        Returns:
        the hex character for that digit or '\0' if invalid