I mean i do need to convert hex to integer and then calculate its Binary Value!! Right
no need to take all that trouble my friend !!!
let's get it step by step
1. 0x01234567 - this is the hexadecimal representation of the number that we are taking into consideration
2. we also know that this integer occupies 32 bits i.e 4 bytes
so lets split it
byte 1 - 67
byte 2 - 45
byte 3 - 23
byte 4 - 01
3. now since the write method takes an int and returns a byte we only need to take into consideration byte 1 i.e 67
hope its clear now
Samith.P.Nambiar