code: static public String intToHexString(int n, int width) {
          StringBuilder  dest = new StringBuilder(width);
          dest.append(Integer.toHexString(n));
          while (dest.length() < width) {
             dest.insert(0, ' ');
          }
          return dest.toString();
      }
docs: /* Fixed width int-to-string conversion.