Question: I have a **uint8** *(unsigned 8 bit integer)* coming in from a UDP packet. Java only uses signed primitives. How do I parse this data structure correctly with java?

Answer: 
`0xFF & number` will treat the number as unsigned byte. But the resultant type is `int`
You could simply parse it into a `short` or an `int`, which have enough range to hold all the values of an unsigned byte.