code: private static final String toBrowserHexValue(final int number)
      {
          final String chex = Integer.toHexString(fixRGB(number) & 0xFF).toUpperCase();
  
          if (chex.length() < 2)
          {
              return "0" + chex;
          }
          return chex;
      }
docs: Converts the number to a two-digit hex string,
  e.g. 0 becomes "00" and 255 becomes "FF".
  
  @param number int between 0 and 255
  @return String