Abdulaziz14:
So, the code is good ?
it looks good.
Abdulaziz14:
Could you explain me the step 5 ? is this a systematic way to read values ?
I use
byte hi = x.read();
byte lo = x.read();
int res = hi * 256 + lo;
but shift operator is faster