User Profile
Collapse
-
very2 works thanks... -
thanks that's work for me...
but the result is in decimal...
can you give me a hint how to get the result in hex like [0b,27,00,00]
i try code like this
...Code:ByteBuffer bb = ByteBuffer.allocate(4); bb.order(ByteOrder.LITTLE_ENDIAN); bb.putInt(9995); //bb.putInt(43690); String xx = Arrays.toString(bb.array()); StringLeave a comment:
-
until now i'm using bytebuffer but i can't view the result
my code is
ByteBuffer bb = ByteBuffer.allo cate(4);
bb.order(ByteOr der.LITTLE_ENDI AN);
bb.putInt(9995) ;
System.out.prin tln("x = "+ bb.toString());
i no have idea to print the bb..Leave a comment:
-
Convert integer to hex in little endien format
Please tell me...
how to convert integer to hex in little endian format ?
example : i'm input int = 9995
then
the output in Array String is [0b,27,00,00]
No activity results to display
Show More
Leave a comment: