Bonjour,
je coince sur ce probleme:
Pourquoi lorsque je fais
ca me donne toHexString toUpperCase: FFFFFACB
Code : Sélectionner tout - Visualiser dans une fenêtre à part System.out .println( "toHexString toUpperCase: "+ Integer.toHexString(-1333).toUpperCase());
et lorque je fais l'inverse
ca me donne
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 String h = Integer.toHexString (-1333).toUpperCase(); System.out .println( "Integer.parseInt: "+ Integer.valueOf(h,16))
Merci de votre aidejava.lang.NumberFormatException : For input string: "FFFFFACB"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48 )
Partager