title: Java: Bytes to floats / ints
body: <p>I have a byte array sent via UDP from x-plane. The bytes (4) are all floats or integers…
  I tried to cast them to floats but no luck so far…</p>
  
  <p>Example array:
      byte data[41] = {-66,30,73,0};</p>
  
  <p>How do I convert 4 bytes into int or float and doesn't float use 8 bytes?</p>