
17/11/2014, 08:59
|
 | | | Fecha de Ingreso: agosto-2014 Ubicación: Mountain View
Mensajes: 1.323
Antigüedad: 10 años, 6 meses Puntos: 182 | |
Respuesta: Formar cifra Hexadecimal a partir de varios bytes
Código Java:
Ver originalpublic static void main (String[] args ) { byte b1 = 0x57; byte b2 = 0x4F; byte b3 = 0x05; byte b4 = 0x11; int test2 = (b1 << 24) | (b2 << 16) | (b3 << 8) | b4; }
Un saludo
__________________ If to err is human, then programmers are the most human of us |