code: public static byte[] intToBytes(int value) {
          byte[] result = new byte[4];
          result[0] = (byte)(value >> 24 & 0xff);
          result[1] = (byte)(value >> 16 & 0xff);
          result[2] = (byte)(value >> 8 & 0xff);
          result[3] = (byte)(value & 0xff);
          return result;
      }
docs: Convert integer (4 octets) value to bytes.
  
  @param value as 4 bytes representing integer in bytes.
  @return