title: Write two integers into high 4bits and lower 4 bits in a byte using java
body: <p>i have a java code to read a unsigned integer from high 4bit and another from lower 4bit</p>
  <pre><code> byte[] value = getBytes(1);
   int first = (value[0] &amp; 0xF0) &gt;&gt; 4;
   int second   = value[0] &amp; 0x0F;
  </code></pre>
  <p>i have to write those 2 integers(first, second) back to new 1 byte using java.</p>
  <p>please help me</p>