code: public static void setInt(int n, byte[] b, int off, boolean littleEndian) {
  		if (littleEndian) {
  			b[off] = (byte) n;
  			b[off + 1] = (byte) (n >>> 8);
  			b[off + 2] = (byte) (n >>> 16);
  			b[off + 3] = (byte) (n >>> 24);
  		} else {
  			b[off] = (byte) (n >>> 24);
  			b[off + 1] = (byte) (n >>> 16);
  			b[off + 2] = (byte) (n >>> 8);
  			b[off + 3] = (byte) n;
  		}
  	}
docs: Store an <b>int</b> number into a byte array in a given byte order