Salut,
eng ros c'est hyper simple voici un exemple
int n = 236;
System.out.println("0x" + Integer.toString(n, 16));//affichage en hexa
System.out.println(Integer.toString(n, 2));//1 ere solution pour afficher en binaire
System.out.println(Integer.toBinaryString(n));//2 eme solution pour afficher en binaire
WORA
|