title: Getting byte value for numbers between 0 and 255?
body: <p>I need to get the byte / 8 bit representation for numbers between 0 and 255. Is there any comfortable way to do this in Java? Seems like most methods are intended to be work with 4 byte long integers? My final goal is to write several 8 bit values to a file.</p>
  
  <p>Thanks for any hint on this!</p>