J
jimgardener
hi
i have an array of chars like 0x81,0x7e,0xff etc,
when i try to display such characters using
format()
char c=0x81;
System.out.print("%x",c) it gives
java.util.IllegalFormatConversionException: x != java.lang.Character
but
System.out.print("%x",0x81) and
int i=0x81;
System.out.print("%x",i) works
why is this ?can someone explain?
jim
i have an array of chars like 0x81,0x7e,0xff etc,
when i try to display such characters using
format()
char c=0x81;
System.out.print("%x",c) it gives
java.util.IllegalFormatConversionException: x != java.lang.Character
but
System.out.print("%x",0x81) and
int i=0x81;
System.out.print("%x",i) works
why is this ?can someone explain?
jim