title: Addup differently byte-sized fields in Java?
body: <p>I am coding some sort of packet which has different fields with different length in bytes.</p>
  <p>So field1 is 2 byte long field2 is 3 bytes long field3 is 6 bytes long and when I addup these fields, I should be getting 11 bytes in length.</p>
  <p>But I have no idea how I can declare something with this byte long.</p>