code: protected String convertToHex(int i) {
  
          String hexString = Integer.toHexString(i);
          while (hexString.length() < 2) {
              hexString = "0" + hexString;
          }
          return hexString;
      }
docs: Converts the integer value to an hex value.<p>
  @param i the integer value
  @return the hex string